aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:34:49 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:34:49 -0700
commit6e0c20ed4dcdd7087b3c6adec312ac5796274ba1 (patch)
treecf8446e2b086ff43bde1d7f61b3c68fd828340bc /src/main/java/org/traccar
parent238f5d9b8b9e4819a9909a7403dcbc7bec0dc714 (diff)
downloadtrackermap-server-6e0c20ed4dcdd7087b3c6adec312ac5796274ba1.tar.gz
trackermap-server-6e0c20ed4dcdd7087b3c6adec312ac5796274ba1.tar.bz2
trackermap-server-6e0c20ed4dcdd7087b3c6adec312ac5796274ba1.zip
Fix code style issues
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();