File tree 1 file changed +4
-3
lines changed
source-code/app/src/main/java/org/buildmlearn/toolkit/comprehensiontemplate/fragment
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,10 @@ public void onFinish() {
117
117
118
118
Fragment frag = QuestionFragment .newInstance ();
119
119
frag .setArguments (arguments );
120
- getActivity ().getSupportFragmentManager ().popBackStack (null , FragmentManager .POP_BACK_STACK_INCLUSIVE );
121
-
122
- getActivity ().getSupportFragmentManager ().beginTransaction ().replace (((ViewGroup ) getView ().getParent ()).getId (), frag ).addToBackStack (null ).commit ();
120
+ if (getActivity ()!=null ) {
121
+ getActivity ().getSupportFragmentManager ().popBackStack (null , FragmentManager .POP_BACK_STACK_INCLUSIVE );
122
+ getActivity ().getSupportFragmentManager ().beginTransaction ().replace (((ViewGroup ) getView ().getParent ()).getId (), frag ).addToBackStack (null ).commit ();
123
+ }
123
124
}
124
125
}.start ();
125
126
You can’t perform that action at this time.
0 commit comments