title: Will a synchronized block help me in this situation?
body: <p><code>application.temporaryStory</code> is globally visible <code>Story</code> object that at least 2 threads can write to and read from.</p>
  
  <p>In an adapter, I have this code;</p>
  
  <pre><code>        synchronized (this){
              if(application.temporaryStory!=null){ // Line A
                  application.temporaryStory.setLastImageViewed(position); // Line B
              }
          }
  </code></pre>
  
  <p>This code is executed in the main thread.
  Is it possible, in spite of the synchronized block, for a worker thread to null out the <code>application.temporaryStory</code> object between the check in line A and the code in line B?</p>