mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
Fix index out of bounds
This commit is contained in:
parent
b3bffe7edb
commit
aa3977ed8e
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ public final class Line implements Serializable, Comparable<Line>
|
||||||
this.attrs = attrs;
|
this.attrs = attrs;
|
||||||
this.message = message;
|
this.message = message;
|
||||||
|
|
||||||
product = label != null ? label.charAt(0) : '?';
|
product = (label != null && label.length() >= 1) ? label.charAt(0) : '?';
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasAttr(final Attr attr)
|
public boolean hasAttr(final Attr attr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue