android: Don't try to load the profile with ID 0

This commit is contained in:
Tobias Brunner 2012-08-27 16:53:07 +02:00
parent 825c192d4f
commit 7fedacb2e7
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ public class VpnProfileDetailActivity extends Activity
String alias = null;
getActionBar().setTitle(R.string.add_profile);
if (mId != null)
if (mId != null && mId != 0)
{
mProfile = mDataSource.getVpnProfile(mId);
if (mProfile != null)