-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
When trying to open HelpStack following the installation instructions, I get a null pointer exception following a call to getSupportActionBar() in your activity. I don't see any calls to setSupportActionBar in your activity, maybe is that the reason?
Testing on Android 5.1, app's minimum is 4.0.
My setup:
helpStack = HSHelpStack.getInstance(context);
HSEmailGear hsGear = new HSEmailGear("support@****", R.xml.test_faq_articles);
helpStack.setGear(hsGear);
My launch line:
HSHelpStack.getInstance(getActivity()).showHelp(getActivity());
Stack trace:
[...]
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setHomeButtonEnabled(boolean)' on a null object reference
at com.tenmiles.helpstack.activities.HSActivityParent.onCreate(HSActivityParent.java:48)
at com.tenmiles.helpstack.activities.HomeActivity.onCreate(HomeActivity.java:45)
at android.app.Activity.performCreate(Activity.java:6088)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.access$900(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1322)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5300)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
aayaffe
Metadata
Metadata
Assignees
Labels
No labels