Skip to content
This repository was archived by the owner on Dec 21, 2020. It is now read-only.
This repository was archived by the owner on Dec 21, 2020. It is now read-only.

InstructionList.createGPX fails to null Translation #53

@devemux86

Description

@devemux86

Using the alternative API client to perform online routing and then produce gpx from the result, fails with:

java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String com.graphhopper.util.Translation.tr(java.lang.String, java.lang.Object[])' on a null object reference
    at com.graphhopper.util.FinishInstruction.getTurnDescription(FinishInstruction.java:55)
    at com.graphhopper.util.InstructionList.createWayPointBlock(InstructionList.java:168)
    at com.graphhopper.util.InstructionList.createGPX(InstructionList.java:200)

This is because in GraphHopperWeb.createPathWrapper a null Translation is used:

InstructionList il = new InstructionList(null);

Since we have the online routing result, can we support GPX creation on the client?
e.g. enhance InstructionList to allow external Translation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions