android: Fix null pointer dereference with existing profiles

This commit is contained in:
Tobias Brunner committed 2017-07-03 13:43:53 +02:00
1 parent 64c2d3ca3e
commit ebf369c483
1 file changed
+1 -1
@@ -284,7 +284,7 @@ public class VpnProfile implements Cloneable
public Integer getFlags()
{
return mFlags;
return mFlags == null ? 0 : mFlags;
}
public void setFlags(Integer flags)