I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 97ed0a3a authored by str4d's avatar str4d
Browse files

NPE fix

parent ec6d225d
No related branches found
No related tags found
No related merge requests found
...@@ -110,8 +110,11 @@ public class HelpActivity extends ActionBarActivity implements ...@@ -110,8 +110,11 @@ public class HelpActivity extends ActionBarActivity implements
FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
ft.replace(R.id.main_fragment, f); ft.replace(R.id.main_fragment, f);
if (mTwoPane) if (mTwoPane) {
ft.remove(getSupportFragmentManager().findFragmentById(R.id.detail_fragment)); Fragment df = getSupportFragmentManager().findFragmentById(R.id.detail_fragment);
if (df != null)
ft.remove(df);
}
ft.commit(); ft.commit();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment