Merge "Fix NPE in PanelFragment" am: 06cafcd733
am: 98e3ed4e5d
Change-Id: I710a54c16476313e83bf8ee9c12c0712a184c65c
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