Android - NPE in BrowserFrame <p>I get this exception triggered by users occasionally that I cannot reproduce. Since it's issued from looper I suppose it is result of Handler-type callback. I found <a href="http://code.google.com/p/android/issues/detail?id=3355" rel="nofollow noreferrer">similar bug</a> on Google code but putting the solution into code didn't solve it. The problem is at this line of <a href="http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/webkit/BrowserFrame.java;hb=cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f" rel="nofollow noreferrer">code in BrowserFrame</a>: </p> <pre><code>WebAddress uri = new WebAddress( mCallbackProxy.getBackForwardList().getCurrentItem() .getUrl()); </code></pre> <p>Which throws this Exception because I suppose mCallbackProxy is null</p> <pre><code>java.lang.NullPointerException at android.webkit.BrowserFrame.handleMessage(BrowserFrame.java:348) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:471) at java.lang.Thread.run(Thread.java:1060) </code></pre> <p>And the questions are - will this forclose the app? And how do I work around this bug?</p>