hanchang / friar

Friar Framework helps you make beautiful Android 2.2+ apps out of HTML5 content. Inspired by the Baker Framework for iOS.
http://www.friarframework.com
75 stars 19 forks source link

Opening links crashes the app #3

Closed ollisulopuisto closed 12 years ago

ollisulopuisto commented 12 years ago

I've a simple link link in my app, but clicking on it immediately crashes the app.

02-22 14:35:57.595: W/dalvikvm(6501): threadid=1: thread exiting with uncaught exception (group=0x401f8560) 02-22 14:35:57.595: E/AndroidRuntime(6501): FATAL EXCEPTION: main 02-22 14:35:57.595: E/AndroidRuntime(6501): java.lang.NullPointerException 02-22 14:35:57.595: E/AndroidRuntime(6501): at com.friarframework.FriarBook$FriarWebViewClient.onPageStarted(FriarBook.java:185) 02-22 14:35:57.595: E/AndroidRuntime(6501): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:264) 02-22 14:35:57.595: E/AndroidRuntime(6501): at android.os.Handler.dispatchMessage(Handler.java:99) 02-22 14:35:57.595: E/AndroidRuntime(6501): at android.os.Looper.loop(Looper.java:130) 02-22 14:35:57.595: E/AndroidRuntime(6501): at android.app.ActivityThread.main(ActivityThread.java:3835) 02-22 14:35:57.595: E/AndroidRuntime(6501): at java.lang.reflect.Method.invokeNative(Native Method) 02-22 14:35:57.595: E/AndroidRuntime(6501): at java.lang.reflect.Method.invoke(Method.java:507) 02-22 14:35:57.595: E/AndroidRuntime(6501): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847) 02-22 14:35:57.595: E/AndroidRuntime(6501): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605) 02-22 14:35:57.595: E/AndroidRuntime(6501): at dalvik.system.NativeStart.main(Native Method)

I've added so that shouldn't be the thing.

hanchang commented 12 years ago

Bug confirmed! I'll try to have a fix out by the end of this weekend, thanks for letting me know!

hanchang commented 12 years ago

Hi Olli, I've pushed a fix, can you take a look and see if it works for you?