Hi, I'm getting error reports from some users with the following exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.AssetManager android.content.Context.getAssets()' on a null object reference
at org.oscim.android.AndroidAssets.openFileAsStream(AndroidAssets.java:40)
at org.oscim.backend.AssetAdapter.readTextFile(AssetAdapter.java:44)
at org.oscim.renderer.GLShader.loadShader(GLShader.java:48)
at org.oscim.renderer.GLShader.create(GLShader.java:24)
at org.oscim.renderer.bucket.BitmapBucket$Shader.(BitmapBucket.java:170)
at org.oscim.renderer.bucket.BitmapBucket$Renderer.init(BitmapBucket.java:196)
at org.oscim.renderer.bucket.RenderBuckets.initRenderer(RenderBuckets.java:421)
at org.oscim.renderer.MapRenderer.onSurfaceCreated(MapRenderer.java:232)
at org.oscim.android.gl.GLView$GLRenderer.onSurfaceCreated(GLView.java:38)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
Hi, I'm getting error reports from some users with the following exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.AssetManager android.content.Context.getAssets()' on a null object reference at org.oscim.android.AndroidAssets.openFileAsStream(AndroidAssets.java:40) at org.oscim.backend.AssetAdapter.readTextFile(AssetAdapter.java:44) at org.oscim.renderer.GLShader.loadShader(GLShader.java:48) at org.oscim.renderer.GLShader.create(GLShader.java:24) at org.oscim.renderer.bucket.BitmapBucket$Shader.(BitmapBucket.java:170) at org.oscim.renderer.bucket.BitmapBucket$Renderer.init(BitmapBucket.java:196) at org.oscim.renderer.bucket.RenderBuckets.initRenderer(RenderBuckets.java:421) at org.oscim.renderer.MapRenderer.onSurfaceCreated(MapRenderer.java:232) at org.oscim.android.gl.GLView$GLRenderer.onSurfaceCreated(GLView.java:38) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
What could be causing this? Thanks, Ondrej