java.lang.NullPointerException

Appcelerator JIRA | Ricardo Pereira | 1 year ago
  1. 0

    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)

    Appcelerator JIRA | 1 year ago | Ricardo Pereira
    java.lang.NullPointerException
  2. 0

    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)

    Appcelerator JIRA | 1 year ago | Ricardo Pereira
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at ti.modules.titanium.paint.PaintViewProxy.setImage()
    2. ti.modules.titanium
      PaintViewProxy.setImage
      1. ti.modules.titanium.paint.PaintViewProxy.setImage(PaintViewProxy.java:62)
      1 frame
    3. org.appcelerator.kroll
      V8Runtime.handleMessage
      1. org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
      2. org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177)
      3. org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299)
      4. org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203)
      4 frames
    4. Android Platform
      Looper.loop
      1. android.os.Handler.dispatchMessage(Handler.java:106)
      2. android.os.Looper.loop(Looper.java:193)
      2 frames
    5. org.appcelerator.kroll
      KrollRuntime$KrollRuntimeThread.run
      1. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
      1 frame