rossati Active Member Licensed User Longtime User Jan 27, 2018 #1 Hi I'm building a chart generator starting from Erel's project Chart; calling a Bar generators funtions of Erel (in main module) I obtain a chart. I copied the same function on chart module and, trying to generate the same chart, I have an error on Code: Copy BD.Canvas.Initialize(BD.Target) BD.Target is a panel and it is initialised. The error is : java.lang.NullPointerException: Attempt to read from field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference Click to expand... Thanks John Rossati Attachments Chart.zip Chart.zip 21 KB · Views: 500
Hi I'm building a chart generator starting from Erel's project Chart; calling a Bar generators funtions of Erel (in main module) I obtain a chart. I copied the same function on chart module and, trying to generate the same chart, I have an error on Code: Copy BD.Canvas.Initialize(BD.Target) BD.Target is a panel and it is initialised. The error is : java.lang.NullPointerException: Attempt to read from field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference Click to expand... Thanks John Rossati
rossati Active Member Licensed User Longtime User Jan 27, 2018 #2 I apologize I initialized the panel twice, now it works. Thanks John Rossati Upvote 0