I added below code to verify null pointer exceptions with PMD tool but unfortunately null pointer exception is not covered. Could you please help me how to capture null pointer exceptions?
Test code in Android Java file:
Bitmap bmp = null;
bmp.getHeight ();
bmp.getPixels ();
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I added below code to verify null pointer exceptions with PMD tool but unfortunately null pointer exception is not covered. Could you please help me how to capture null pointer exceptions?
Test code in Android Java file:
Bitmap bmp = null;
bmp.getHeight ();
bmp.getPixels ();
Thanks in advance.