Merge "Fix NPE in PanelFragment" am: 06cafcd733
am: 98e3ed4e5d
am: 6ad23a342d
am: 9b798aa738
am: 2b481a5969
Change-Id: Ic082a4f9aa65114eec606edb77c3c7bb8e2be8e8
This commit is contained in:
@@ -156,8 +156,13 @@ public class PanelFragment extends Fragment {
|
||||
|
||||
private void createPanelContent() {
|
||||
final FragmentActivity activity = getActivity();
|
||||
if (activity == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mLayoutView == null) {
|
||||
activity.finish();
|
||||
return;
|
||||
}
|
||||
|
||||
mPanelSlices = mLayoutView.findViewById(R.id.panel_parent_layout);
|
||||
@@ -183,6 +188,7 @@ public class PanelFragment extends Fragment {
|
||||
|
||||
if (mPanel == null) {
|
||||
activity.finish();
|
||||
return;
|
||||
}
|
||||
|
||||
mPanel.registerCallback(new LocalPanelCallback());
|
||||
|
Reference in New Issue
Block a user