其他分享
首页 > 其他分享> > android google maps nullpointerexception

android google maps nullpointerexception

作者:互联网

所以我一直在看到一个特殊的例外,我非常确定Google Maps绘图代码.

我有一个片段,我以编程方式添加到SupportMapFragment中,然后我在其中操作GoogleMap实例.

这是堆栈跟踪:

0   java.lang.NullPointerException

1   at java.nio.ReadWriteDirectByteBuffer.put(ReadWriteDirectByteBuffer.java:137)

2   at java.nio.ShortToByteBufferAdapter.put(ShortToByteBufferAdapter.java:163)

3   at maps.z.d.d(Unknown Source)

4   at maps.z.d.a(Unknown Source)

5   at maps.aq.a.a(Unknown Source)

6   at maps.aq.ao.b(Unknown Source)

7   at maps.aq.ao.a(Unknown Source)

8   at maps.v.g.a(Unknown Source)

9   at maps.v.g.b(Unknown Source)

10  at maps.p.p.l(Unknown Source)

11  at maps.p.p.run(Unknown Source)

我无法可靠地复制它(虽然它经常发生),我看了ReadWriteDirectByteBuffer和ShortToByteBufferAdapter,但没有任何东西突然出现在我面前.

有任何想法吗?

解决方法:

我有同样的随机问题.

您可能想尝试重新确定issue on gmaps-api-issues.

标签:android,nullpointerexception,google-maps,supportmapfragment
来源: https://codeday.me/bug/20190529/1177453.html