android: Don't try to load the profile with ID 0
This commit is contained in:
@@ -346,7 +346,7 @@ public class VpnProfileDetailActivity extends Activity
|
|||||||
String alias = null;
|
String alias = null;
|
||||||
|
|
||||||
getActionBar().setTitle(R.string.add_profile);
|
getActionBar().setTitle(R.string.add_profile);
|
||||||
if (mId != null)
|
if (mId != null && mId != 0)
|
||||||
{
|
{
|
||||||
mProfile = mDataSource.getVpnProfile(mId);
|
mProfile = mDataSource.getVpnProfile(mId);
|
||||||
if (mProfile != null)
|
if (mProfile != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user