diff --git a/bVNC/src/main/java/com/iiordanov/bVNC/Utils.java b/bVNC/src/main/java/com/iiordanov/bVNC/Utils.java index 11d3c499c..72abb4068 100644 --- a/bVNC/src/main/java/com/iiordanov/bVNC/Utils.java +++ b/bVNC/src/main/java/com/iiordanov/bVNC/Utils.java @@ -277,7 +277,7 @@ public static boolean isOpaque(Context context) { return packageName.toLowerCase().contains("opaque"); } - public static String getStringConfigAttribute(Context context, String configDataKey, String configDataKeyChild, String childAttribute) throws IOException { + public static String getStringConfigAttribute(Context context, String configDataKey, String configDataKeyChild, String childAttribute) throws IOException, NullPointerException { try { CustomClientConfigFileReader configFileReader = new CustomClientConfigFileReader( context.getAssets().open(Utils.pName(context) + ".yaml")); @@ -290,7 +290,7 @@ public static String getStringConfigAttribute(Context context, String configData } } - public static void setVisibilityForViewElementsViaConfig(Context context, String configDataKey, View view) throws IOException { + public static void setVisibilityForViewElementsViaConfig(Context context, String configDataKey, View view) throws IOException, NullPointerException { try { String packageName = Utils.pName(context); CustomClientConfigFileReader configFileReader = new CustomClientConfigFileReader(