java.lang.NullPointerException: Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

GitHub | BishopGIS | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Crash on sync

    GitHub | 5 months ago | BishopGIS
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

      at com.nextgis.maplib.util.FileUtil.copyStream()
    2. com.nextgis.maplib
      SyncAdapter.onPerformSync
      1. com.nextgis.maplib.util.FileUtil.copyStream(FileUtil.java:181)
      2. com.nextgis.maplib.util.NetworkUtil.responseToString(NetworkUtil.java:140)
      3. com.nextgis.maplib.util.NetworkUtil.get(NetworkUtil.java:193)
      4. com.nextgis.maplib.util.NGWUtil.getNgwVersion(NGWUtil.java:172)
      5. com.nextgis.maplib.map.NGWVectorLayer.sync(NGWVectorLayer.java:682)
      6. com.nextgis.maplib.datasource.ngw.SyncAdapter.sync(SyncAdapter.java:156)
      7. com.nextgis.maplib.datasource.ngw.SyncAdapter.onPerformSync(SyncAdapter.java:119)
      7 frames
    3. com.nextgis.mobile
      SyncAdapter.onPerformSync
      1. com.nextgis.mobile.datasource.SyncAdapter.onPerformSync(SyncAdapter.java:56)
      1 frame
    4. Android Platform
      AbstractThreadedSyncAdapter$SyncThread.run
      1. android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
      1 frame