Skip to content

Instantly share code, notes, and snippets.

@googolmo
Created July 23, 2015 08:27
Show Gist options
  • Save googolmo/05bd8b80712684e92800 to your computer and use it in GitHub Desktop.
Save googolmo/05bd8b80712684e92800 to your computer and use it in GitHub Desktop.
07-23 16:25:22.739 7749-7749/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.booking, PID: 7749
java.lang.ExceptionInInitializerError
at com.booking.common.exp.ExperimentsServer.init(ExperimentsServer.java:242)
at com.booking.common.exp.ExperimentsServer.getInstance(ExperimentsServer.java:93)
at com.booking.common.exp.ExperimentsServer.getInstance(ExperimentsServer.java:99)
at com.booking.common.data.Squeak$SqueakBuilder.getInformation(Squeak.java:152)
at com.booking.common.data.Squeak$SqueakBuilder.attachClientDetails(Squeak.java:263)
at com.booking.common.data.Squeak$SqueakBuilder.attach(Squeak.java:235)
at com.booking.DynamicLoaderLiveHelper.hasLoadedCodeDynamically(DynamicLoaderLiveHelper.java:151)
at com.booking.BookingApplication.onCreate(BookingApplication.java:292)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4705)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1406)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5415)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:725)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:615)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
at com.booking.util.NetworkStateBroadcaster.getNetworkStatus(NetworkStateBroadcaster.java:143)
at com.booking.util.NetworkStateBroadcaster.register(NetworkStateBroadcaster.java:98)
at com.booking.util.NetworkStateBroadcaster.addNetworkStateListener(NetworkStateBroadcaster.java:81)
at com.booking.common.exp.ExpTrackingCaller.<init>(ExpTrackingCaller.java:91)
at com.booking.common.exp.ExpTrackingCaller.<clinit>(ExpTrackingCaller.java:52)
            at com.booking.common.exp.ExperimentsServer.init(ExperimentsServer.java:242)
            at com.booking.common.exp.ExperimentsServer.getInstance(ExperimentsServer.java:93)
            at com.booking.common.exp.ExperimentsServer.getInstance(ExperimentsServer.java:99)
            at com.booking.common.data.Squeak$SqueakBuilder.getInformation(Squeak.java:152)
            at com.booking.common.data.Squeak$SqueakBuilder.attachClientDetails(Squeak.java:263)
            at com.booking.common.data.Squeak$SqueakBuilder.attach(Squeak.java:235)
            at com.booking.DynamicLoaderLiveHelper.hasLoadedCodeDynamically(DynamicLoaderLiveHelper.java:151)
            at com.booking.BookingApplication.onCreate(BookingApplication.java:292)
            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4705)
            at android.app.ActivityThread.-wrap1(ActivityThread.java)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1406)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:148)
            at android.app.ActivityThread.main(ActivityThread.java:5415)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:725)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:615)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment