Don't try to save profile ID if there is none
This commit is contained in:
1 parent
7546735fec
commit
cb431e12da
1 file changed
+4
-1
@@ -104,7 +104,10 @@ public class VpnProfileDetailActivity extends Activity
|
||||
protected void onSaveInstanceState(Bundle outState)
|
||||
{
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putLong(VpnProfileDataSource.KEY_ID, mId);
|
||||
if (mId != null)
|
||||
{
|
||||
outState.putLong(VpnProfileDataSource.KEY_ID, mId);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user