mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Do not add empty exceptions in test
Messages and exceptions both lead to warn(), while only exceptions should be stored
This commit is contained in:
+6
-2
@@ -347,7 +347,9 @@ public abstract class PyEnvTestCase {
|
||||
|
||||
@Override
|
||||
public void processWarn(final String message, final Throwable t, @NotNull final org.apache.log4j.Logger logger) {
|
||||
myExceptions.add(t);
|
||||
if (t != null) {
|
||||
myExceptions.add(t);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -355,7 +357,9 @@ public abstract class PyEnvTestCase {
|
||||
final Throwable t,
|
||||
final String[] details,
|
||||
@NotNull final org.apache.log4j.Logger logger) {
|
||||
myExceptions.add(t);
|
||||
if (t != null) {
|
||||
myExceptions.add(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user