Closed ghost closed 1 year ago
@pbrant -- could we get this one merged?
@pbrant -- bump?
I think this will only be relevant if using SharedContext concurrently across multiple threads. Does that sound right given given your use of it?
This isn't how the code was intended to be used and it wouldn't surprise me if there are other issues with doing so. It can be used repeatedly (after calling .reset()) across a single thread though.
That said, the patch as written shouldn't cause any issues either so I'm fine with it.
I don't recall the exact circumstances around when I encountered the NPE, sorry. Merging would be great, because then I could get replace my custom build with the one from this repo.
OK, sounds good.
Released 9.2.1
Assign
styleMap
to local method variable (localMap
) to avoid possibility ofstyleMap
becomingnull
during method execution, otherwise resulting in an NPE.