fixed crash

This commit is contained in:
nuclearfog 2023-06-19 19:25:06 +02:00
parent 408b6009f8
commit 35371480cb
No known key found for this signature in database
GPG Key ID: 03488A185C476379
1 changed files with 1 additions and 5 deletions

View File

@ -40,7 +40,6 @@ public class ErrorUtils {
* @param exception connection exception
* @return message string
*/
@Nullable
public static String getErrorMessage(Context context, @Nullable ConnectionException exception) {
if (exception != null) {
switch (exception.getErrorCode()) {
@ -126,11 +125,8 @@ public class ErrorUtils {
return exception.getMessage();
}
break;
default:
return context.getString(R.string.error_not_defined);
}
}
return null;
return context.getString(R.string.error_not_defined);
}
}