Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在小程序中开发游戏。在 Eclipse 中它工作得非常好,但是当我签署它并将它加载到我的浏览器中时,它会抛出一个 NullPointerException,而没有任何进一步的信息。我能做些什么?
您在这里没有提供太多信息,但我可以猜测您正在调用getAppletContext并且它返回 null,因为浏览器的 java 实现已损坏。试试小程序查看器,然后尝试不同的浏览器,看看它是否在那里工作。
getAppletContext
这种事发生在我身上一次。你需要去:
我认为这应该可以解决问题!