Commit 38b70318 by Tuukka Kivilahti

nullpointerexception

1 parent e96331f9
......@@ -305,7 +305,7 @@ public class Place extends GenericEntity implements Comparable<Place> {
// check prefixes
String splitted[] = o.getName().split("[0-9]");
if(splitted[0].length() > 0) {
if(splitted.length > 0 && splitted[0].length() > 0) {
if(splitted[0].length() > this.getName().length()) {
return this.getName().compareTo(splitted[0]);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!