Skip to content

Commit

Permalink
Updated throwables for Util functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkotixwolf committed Oct 21, 2024
1 parent 9c4144c commit 03d81c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bVNC/src/main/java/com/iiordanov/bVNC/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -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(
Expand Down

0 comments on commit 03d81c4

Please sign in to comment.