mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
fix strings containing zero byte
This commit is contained in:
parent
5ac76d4410
commit
9382f5c939
1 changed files with 1 additions and 1 deletions
|
@ -2874,7 +2874,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
|
|
||||||
protected Line newLine(final char product, final String normalizedName, final String comment, final Line.Attr... attrs)
|
protected Line newLine(final char product, final String normalizedName, final String comment, final Line.Attr... attrs)
|
||||||
{
|
{
|
||||||
final String lineStr = product + (normalizedName != null ? normalizedName : "?");
|
final String lineStr = (product != 0 ? Character.toString(product) : Product.UNKNOWN) + (normalizedName != null ? normalizedName : "?");
|
||||||
|
|
||||||
if (attrs.length == 0)
|
if (attrs.length == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue