L2JMobius

The Kamael Tutorial can throw NPE in GS

uchihasv · 1 · 4730

Offline uchihasv

  • Knight
  • ***
    • Posts: 54
Code: [Select]
AnnotationEventListener: Error while invoking onPlayerPressTutorialMark on quests.Q00255_Tutorial.Q00255_Tutorial@5c81671
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.l2jmobius.gameserver.model.events.listeners.AnnotationEventListener.executeEvent(AnnotationEventListener.java:49)
at org.l2jmobius.gameserver.model.events.EventDispatcher.notifyToListeners(EventDispatcher.java:225)
at org.l2jmobius.gameserver.model.events.EventDispatcher.notifyEventToMultipleContainers(EventDispatcher.java:160)
at org.l2jmobius.gameserver.model.events.EventDispatcher.lambda$notifyEventAsync$0(EventDispatcher.java:118)
at org.l2jmobius.commons.concurrent.RunnableWrapper.run(RunnableWrapper.java:38)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.NullPointerException: Cannot invoke "org.l2jmobius.gameserver.model.Location.getX()" because the return value of "java.util.Map.get(Object)" is null
at quests.Q00255_Tutorial.Q00255_Tutorial.onPlayerPressTutorialMark(Q00255_Tutorial.java:349)
... 12 more

This happen if u close first start window, go away from start location without any kill gremlins and leave not pressed question mark in right bottom, then u need leveling in any other town areas and if u now click this question mark u get NPE in GS.