Don't try to save profile ID if there is none

This commit is contained in:
Tobias Brunner committed 2012-08-14 12:01:41 +02:00
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