java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I've added a .zip file here, inside the widget the widget.js it's my work around for all of this, the ios.js and android.js files, respectively represent the code that leads to reproduce this bugs. 1) android 2.0.0: Every time that I try to setImage() on a PaintView, if it's a system file, throws this error: [WARN] : W/System.err: java.lang.NullPointerException [WARN] : W/System.err: at ti.modules.titanium.paint.PaintViewProxy.setImage(PaintViewProxy.java:62) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106) [WARN] : W/System.err: at android.os.Looper.loop(Looper.java:193) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) 2) iOS 1.4.0: 2.1) Can't get touchcancel, touchmove, touchend and click events. 2.2) Dissapear half of the saved file loaded in PaintView: I don't know if it's necessary to solve this because setImage works fine on iOS, but there may be cases which the View has a backgroundImage. When I save the file for the 2 time, disappears the bottom half of the saved file in PaintView, but not my last canvas draw (second one). How to reproduce: - Draw a signature - Save the signature file - Close the app or rebuild - Open the app (load saved file and set it has backgroundImage of the View or PaintView) - Draw over the saved signature and save - Draw over the saved signature and save (BUG)
    via by Ricardo Pereira,
  • I've added a .zip file here, inside the widget the widget.js it's my work around for all of this, the ios.js and android.js files, respectively represent the code that leads to reproduce this bugs. 1) android 2.0.0: Every time that I try to setImage() on a PaintView, if it's a system file, throws this error: [WARN] : W/System.err: java.lang.NullPointerException [WARN] : W/System.err: at ti.modules.titanium.paint.PaintViewProxy.setImage(PaintViewProxy.java:62) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106) [WARN] : W/System.err: at android.os.Looper.loop(Looper.java:193) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) 2) iOS 1.4.0: 2.1) Can't get touchcancel, touchmove, touchend and click events. 2.2) Dissapear half of the saved file loaded in PaintView: I don't know if it's necessary to solve this because setImage works fine on iOS, but there may be cases which the View has a backgroundImage. When I save the file for the 2 time, disappears the bottom half of the saved file in PaintView, but not my last canvas draw (second one). How to reproduce: - Draw a signature - Save the signature file - Close the app or rebuild - Open the app (load saved file and set it has backgroundImage of the View or PaintView) - Draw over the saved signature and save - Draw over the saved signature and save (BUG)
    via by Ricardo Pereira,
    • java.lang.NullPointerException at ti.modules.titanium.paint.PaintViewProxy.setImage(PaintViewProxy.java:62) at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
    No Bugmate found.