Commit be2d8fea authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

GridFragment: avoid potential NullDereference

parent f5ff08b9
......@@ -372,7 +372,7 @@ public class GridFragment extends Fragment {
mGrid = (GridView) rawGridView;
if (mEmptyView != null) {
mGrid.setEmptyView(mEmptyView);
} else if (mEmptyText != null) {
} else if (mEmptyText != null && mStandardEmptyView != null) {
mStandardEmptyView.setText(mEmptyText);
mGrid.setEmptyView(mStandardEmptyView);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment