diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-27 10:03:45 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-27 10:03:45 +1300 |
commit | 04dd07ab82e8af604fe66df7bc92e59d45c0c916 (patch) | |
tree | 8eecc27ee047b5d8683749516bf95600220c3e9f /src | |
parent | 70642da680096f52fe1478690cd7816f41e18c74 (diff) | |
download | trackermap-server-04dd07ab82e8af604fe66df7bc92e59d45c0c916.tar.gz trackermap-server-04dd07ab82e8af604fe66df7bc92e59d45c0c916.tar.bz2 trackermap-server-04dd07ab82e8af604fe66df7bc92e59d45c0c916.zip |
Handle empty values in parser
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/helper/Parser.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java index 73713c51c..dcea1c8f7 100644 --- a/src/org/traccar/helper/Parser.java +++ b/src/org/traccar/helper/Parser.java @@ -46,7 +46,8 @@ public class Parser { } public boolean hasNext(int number) { - if (matcher.group(position) != null) { + String value = matcher.group(position); + if (value != null && !value.isEmpty()) { return true; } else { position += number; |