android: Fix null pointer dereference with existing profiles
This commit is contained in:
1 parent
64c2d3ca3e
commit
ebf369c483
1 file changed
+1
-1
@@ -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