android: Fix null pointer dereference with existing profiles
This commit is contained in:
@@ -284,7 +284,7 @@ public class VpnProfile implements Cloneable
|
|||||||
|
|
||||||
public Integer getFlags()
|
public Integer getFlags()
|
||||||
{
|
{
|
||||||
return mFlags;
|
return mFlags == null ? 0 : mFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFlags(Integer flags)
|
public void setFlags(Integer flags)
|
||||||
|
|||||||
Reference in New Issue
Block a user