While running a multi-threaded stress test, I received
the following exception:
java.lang.NullPointerException
at java.lang.Throwable.init(Throwable.java)
at java.lang.Throwable.init(Throwable.java)
at
java.lang.NullPointerException.init(NullPointerException.java:60)
Hi Gary,
Is there a need to synchronize on the object(s)?
hmm, no synchronize shouldn't be necessary because PB instance isn't
threadsafe all in all. Maybe the object was reclaimed by GC after the
ref.get() call.
Are you sure that each thread operates on its own PB instance while
running