Gunther Active Member Licensed User Longtime User Mar 26, 2019 #1 Crashlytics log giving this msg for a Android 8.0.0 Samsung device: Code: Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void anywheresoftware.b4a.BA.setLastException(java.lang.Exception)' on a null object reference at twinnypoints.gg.goilsoft.de.game._badger_show(game.java:244) I checked that Sub and don't know why this error was not catched: Code: Public Sub Badger_show Try badgerReward.SetBadge( cmdRewardVideo, intRewardNumber ) Catch End Try End Sub Last edited: Mar 27, 2019
Crashlytics log giving this msg for a Android 8.0.0 Samsung device: Code: Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void anywheresoftware.b4a.BA.setLastException(java.lang.Exception)' on a null object reference at twinnypoints.gg.goilsoft.de.game._badger_show(game.java:244) I checked that Sub and don't know why this error was not catched: Code: Public Sub Badger_show Try badgerReward.SetBadge( cmdRewardVideo, intRewardNumber ) Catch End Try End Sub
S sorex Expert Licensed User Longtime User Mar 27, 2019 #2 My guess is that it was catched but if you use the starter service your app just continues and the 'crash' was reported (by firebase?)
My guess is that it was catched but if you use the starter service your app just continues and the 'crash' was reported (by firebase?)
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2019 #3 Is it possible that you are calling a method in an uninitialized class?
Gunther Active Member Licensed User Longtime User Mar 27, 2019 #4 Erel said: an uninitialized class Click to expand... Unfortunately not. It is initialized in the Game Initialization Sub, and that will be initialized in the first Activity Resume Sub. And as you know the App is running with 4500 installations with no issue, but sometimes this error pops up. It should be something special but not sure what it could be. Last edited: Mar 27, 2019
Erel said: an uninitialized class Click to expand... Unfortunately not. It is initialized in the Game Initialization Sub, and that will be initialized in the first Activity Resume Sub. And as you know the App is running with 4500 installations with no issue, but sometimes this error pops up. It should be something special but not sure what it could be.
Erel B4X founder Staff member Licensed User Longtime User Mar 28, 2019 #5 Can you post the full stack trace? Maybe badgerReward is not initialized?