title: android google maps nullpointerexception
body: <p>So I've been seeing a peculiar exception coming from what I'm pretty sure is Google Maps drawing code. </p>
  
  <p>I've got a Fragment, where I programatically add in a SupportMapFragment, and then I manipulate the GoogleMap instance within it.</p>
  
  <p>Here's the stacktrace:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>I can't reliably replicate it (although it's happening quite often), I've looked at ReadWriteDirectByteBuffer and ShortToByteBufferAdapter but nothing pops out at me.</p>
  
  <p>Any ideas?</p>