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.
pull/1093/head
AudricV 2023-08-07 19:12:17 +02:00
rodzic 162c261577
commit 8237052ef5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DA92EC7905614198
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -56,7 +56,7 @@ public class ExtractorAsserts {
}
public static void assertNotEmpty(@Nullable String message, String stringToCheck) {
assertNotNull(message, stringToCheck);
assertNotNull(stringToCheck, message);
assertFalse(stringToCheck.isEmpty(), message);
}