mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
Fix wrong assertion in assertNotEmpty
The non-null assertion was made on the exception message instead of the string to check, causing a NullPointerException if the string to check was null.
This commit is contained in:
parent
162c261577
commit
8237052ef5
@ -56,7 +56,7 @@ public class ExtractorAsserts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void assertNotEmpty(@Nullable String message, String stringToCheck) {
|
public static void assertNotEmpty(@Nullable String message, String stringToCheck) {
|
||||||
assertNotNull(message, stringToCheck);
|
assertNotNull(stringToCheck, message);
|
||||||
assertFalse(stringToCheck.isEmpty(), message);
|
assertFalse(stringToCheck.isEmpty(), message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user