aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/helper/Log.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/helper/Log.java b/src/main/java/org/traccar/helper/Log.java
index 607a0585f..358f11a31 100644
--- a/src/main/java/org/traccar/helper/Log.java
+++ b/src/main/java/org/traccar/helper/Log.java
@@ -211,9 +211,10 @@ public final class Log {
}
public static String exceptionStack(Throwable exception) {
- Throwable cause;
- while (null != (cause = exception.getCause()) && (exception != cause) ) {
+ Throwable cause = exception.getCause();
+ while (cause != null && exception != cause) {
exception = cause;
+ cause = cause.getCause();
}
StringBuilder s = new StringBuilder();