Robovm 0.0.14 Problems with NullPointerException

I migrated the libgdx (1.3) project, maven, robovm from 0.0.13 to 0.0.14 to support iOS 8 devices. I changed the robovm.xml file in accordance with the release notes and can work on the iOS 8 device, but getting a NullPointerException in several places. The issues I encountered are listed below:

  • Sounds, music and vibration do not work.
  • I get luaj NullPointerException as follows: (I tried to bundle the org.luaj. **. * Package in the robovm.xml file but nothing changed)

org.luaj.vm2.LuaError: checkOnSessionEndAchievements: 5 vm error: java.lang.NullPointerException at org.luaj.vm2.LuaClosure.execute (Unknown source) at org.luaj.vm2.LuaClosure.call (Unknown source) in net. games.mobile.game.core.LuaScriptManager.runFunction (LuaScriptManager.java) at net.games.mobile.game.core.achievement.AchievementManager $ 3.run (AchievementManager.java) in java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker (ThreadPoolExecutor.runWorker () .java) in java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java) in java.lang.Thread.run (Thread.java)

  • I got a NullPointerException in the otto library's "register" Bus.java method, but fixed it using a workaround.

I think something has changed regarding the reflection behavior on version 0.0.14, because the exceptions are related to reflection, as far as I can see. By the way, the same NullPointerException problems are present on iOS 7.1 devices, but "sound, music, vibration" work.

How can I fix this NullPointerException problem?

Thanks and Regards

+6
source share

Source: https://habr.com/ru/post/975346/


All Articles