Recently I’ve been seeing the following crash from the FBAN plugin:
java.lang.NullPointerException Java Stack Trace: plugin.fbAudienceNetwork.LuaLoader.isSDKInitialized(LuaLoader.java:379) plugin.fbAudienceNetwork.LuaLoader.access$2200(LuaLoader.java:55) plugin.fbAudienceNetwork.LuaLoader$load.invoke(LuaLoader.java:864) com.naef.jnlua.LuaState.lua\_pcall(Native Method) com.naef.jnlua.LuaState.call(Unknown Source) com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:138) network.NetworkRequest$LuaCallback$1.executeUsing(NetworkRequest.java:610) com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:170) com.ansca.corona.events.EventManager.sendEvents(EventManager.java:91) com.ansca.corona.Controller.updateRuntimeState(Controller.java:308) com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:421) com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1623) com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378)
The trigger for the crash is a call to load():
fbAudienceNetwork.load("interstitial", placementName)
This is called only if the plugin was initialized and an event with the phase “init” has been received.
Any idea why this is happening?