Android Question Null pointer exception on canvas initialize

rossati

Active Member
Licensed User
Longtime User
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
B4X:
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

Thanks

John Rossati
 

Attachments

  • Chart.zip
    21 KB · Views: 179
Top