Crash with debugger pointing to synchronized(this) line
<p>Nothing has changed in its code over months at a time, and the app has been tested and retested hundreds of times since its inception, under the same sets of operational rules and conditions, without the following being thrown, but yet there it is, now, at the very tail end of the thread's run:  </p>

<p>"[!] Sorry!  The application ProjectName (process com.example.project) has stopped unexpectedly.  Please try again. "</p>

<p>Bear in mind nothing changed in the code from when it had been working hundreds of times before without that message ever before having appeared.  Yesterday, at most I was playing around with some unrelated code, but commented it out when this started happening.  Literally nothing of consequence changed; I can only imagine the run-times have corrupted something in the Dalvik.  Anyway, in the process of trying to understand where to fix the problem, the debugger right away lands a highlight on the line "synchronized(this){":</p>

<pre><code>@Override
protected void onProgressUpdate(ArrayList&lt;Float&gt;... list) {
    //super.onProgressUpdate(values);
    synchronized(this){
        al.analyzePart(list[0]);
    }
}
</code></pre>

<p>It's inside the Async task that's driving the thread which terminates in that lousy 'Force close' message.  What's going on?</p>

<p>Incidentally the debugger also reports there, under the Variables tab, that
"this" has a value of "Analyzer (id=830062630088), and "list" has a value of "ArrayList[1] (id=830063018096)."</p>

<p>Thank you for any help.</p>

<p>Here is a progression of 3 debug window Resumes  that lead up to the Force close message:</p>

<hr>

<pre><code>New_configuration [Android Application] 
    DalvikVM[localhost:8622]    
        Thread [&lt;3&gt; main] (Suspended (exception NullPointerException))  
            Analyzer.onProgressUpdate(ArrayList...) line: 73    
            Analyzer.onProgressUpdate(Object...) line: 1    
            AsyncTask$InternalHandler.handleMessage(Message) line: 431  
            AsyncTask$InternalHandler(Handler).dispatchMessage(Message) line: 99    
            Looper.loop() line: 123 
            ActivityThread.main(String[]) line: 4203    
            Method.invokeNative(Object, Object[], Class, Class[], Class, int, 

boolean) line: not available [native method]    
            Method.invoke(Object, Object...) line: 521  
            ZygoteInit$MethodAndArgsCaller.run() line: 791  
            ZygoteInit.main(String[]) line: 549 
            NativeStart.main(String[]) line: not available [native method]  
        Thread [&lt;15&gt; Binder Thread #3] (Running)    
        Thread [&lt;13&gt; Binder Thread #2] (Running)    
        Thread [&lt;11&gt; Binder Thread #1] (Running)    
        Thread [&lt;17&gt; AsyncTask #1] (Running)    
        Thread [&lt;19&gt; AsyncTask #2] (Running)    
</code></pre>

<hr>

<pre><code>New_configuration [Android Application] 
    DalvikVM[localhost:8622]    
        Thread [&lt;3&gt; main] (Suspended (exception NullPointerException))  
            ZygoteInit$MethodAndArgsCaller.run() line: 797  
            ZygoteInit.main(String[]) line: 549 
            NativeStart.main(String[]) line: not available [native method]  
        Thread [&lt;15&gt; Binder Thread #3] (Running)    
        Thread [&lt;13&gt; Binder Thread #2] (Running)    
        Thread [&lt;11&gt; Binder Thread #1] (Running)    
        Thread [&lt;17&gt; AsyncTask #1] (Running)    
        Thread [&lt;19&gt; AsyncTask #2] (Running)    
</code></pre>

<hr>

<pre><code>New_configuration [Android Application] 
    DalvikVM[localhost:8622]    
        Thread [&lt;3&gt; main] (Running) 
        Thread [&lt;15&gt; Binder Thread #3] (Running)    
        Thread [&lt;13&gt; Binder Thread #2] (Running)    
        Thread [&lt;11&gt; Binder Thread #1] (Running)    
        Thread [&lt;17&gt; AsyncTask #1] (Running)    
        Thread [&lt;19&gt; AsyncTask #2] (Running)    
</code></pre>

<p><strong>The LogCat snip relevant to the thread follows.</strong>  The Force close message comes at second 16:</p>

<pre><code>10-04 05:06:13.708: INFO/ActivityManager(52): Starting activity: Intent { cmp=com.example.subjectanalyzer/.AnalyzerActivity }
10-04 05:06:13.747: INFO/global(507): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
10-04 05:06:13.997: DEBUG/dalvikvm(507): GC freed 1881 objects / 128824 bytes in 139ms
10-04 05:06:14.017: INFO/H(507): 0.979+++++++++++++++++++++++++++++++++
10-04 05:06:14.178: INFO/ActivityManager(52): Displayed activity com.example.subjectanalyzer/.AnalyzerActivity: 447 ms (total 447 ms)
10-04 05:06:16.420: INFO/H(507): got HEAD listener call
10-04 05:06:16.428: INFO/H(507): 0.64- - - - - - - - - - - - - - - - -
10-04 05:06:16.448: DEBUG/skia(507): --- SkImageDecoder::Factory returned null
10-04 05:06:16.448: DEBUG/AndroidRuntime(507): Shutting down VM
10-04 05:06:16.448: WARN/dalvikvm(507): threadid=3: thread exiting with uncaught exception (group=0x4001aa28)
10-04 05:06:16.448: ERROR/AndroidRuntime(507): Uncaught handler: thread main exiting due to uncaught exception
10-04 05:06:16.468: ERROR/AndroidRuntime(507): java.lang.NullPointerException
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at com.example.subjectanalyzer.FindSig.FindSig(FindSig.java:56)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at com.example.subjectanalyzer.AnalyzerActivity$AnalyzerView.analyzePart(AnalyzerActivity.java:173)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at com.example.subjectanalyzer.Analyzer.onProgressUpdate(Analyzer.java:74)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at com.example.subjectanalyzer.Analyzer.onProgressUpdate(Analyzer.java:1)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:431)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at android.os.Looper.loop(Looper.java:123)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at android.app.ActivityThread.main(ActivityThread.java:4203)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at java.lang.reflect.Method.invokeNative(Native Method)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at java.lang.reflect.Method.invoke(Method.java:521)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
10-04 05:06:16.468: ERROR/AndroidRuntime(507):     at dalvik.system.NativeStart.main(Native Method)
10-04 05:06:16.468: INFO/Process(52): Sending signal. PID: 507 SIG: 3
10-04 05:06:16.468: INFO/dalvikvm(507): threadid=7: reacting to signal 3
10-04 05:06:16.468: ERROR/dalvikvm(507): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
</code></pre>
