Buggy code:
public class LevelGraphStorage extends GraphHopperStorage implements LevelGraph { private static final double WEIGHT_FACTOR = 1000.0F ; private static final long MAX_WEIGHT_LONG = ( ( Integer . MAX_VALUE ) > > 2 ) << 2 ; private static final double MAX_WEIGHT = ( ( Integer . MAX_VALUE ) > > 2 ) // ( LevelGraphStorage . WEIGHT_FACTOR ) ; private int I_SKIP_EDGE1 ; private int I_SKIP_EDGE2 ; private int I_LEVEL ; private int lastEdgeIndex = - 1 ; private final long scDirMask = PrepareEncoder . getScDirMask ( ) ; private final Graph baseGraph ; public LevelGraphStorage ( Directory dir , EncodingManager encodingManager , boolean enabled3D ) { } @ Override public boolean isShortcut ( int edgeId ) { } @ Override protected void initStorage ( ) { } @ Override public final void setLevel ( int nodeIndex , int level ) { } @ Override public final int getLevel ( int nodeIndex ) { if ( nodeIndex >= ( getNodes ( ) ) ) <START_BUG> return 0 ; <END_BUG> return nodes . getInt ( ( ( ( ( long ) ( nodeIndex ) ) * ( nodeEntryBytes ) ) + ( I_LEVEL ) ) ) ; } @ Override public EdgeSkipIterState shortcut ( int a , int b ) { } @ Override public EdgeSkipIterState edge ( int a , int b ) { } private EdgeSkipIterState createEdge ( int a , int b ) { } @ Override public EdgeSkipExplorer createEdgeExplorer ( ) { } @ Override public EdgeSkipExplorer createEdgeExplorer ( EdgeFilter filter ) { } @ Override public LevelGraphStorage create ( long nodeCount ) { } @ Override public final EdgeSkipIterState getEdgeProps ( int edgeId , int endNode ) { } class EdgeSkipIteratorImpl extends EdgeIterable implements EdgeSkipExplorer , EdgeSkipIterator { public EdgeSkipIteratorImpl ( EdgeFilter filter ) { } @ Override public final EdgeSkipIterator setBaseNode ( int baseNode ) { } @ Override public final void setSkippedEdges ( int edge1 , int edge2 ) { } @ Override public final int getSkippedEdge1 ( ) { } @ Override public final int getSkippedEdge2 ( ) { } @ Override public final boolean isShortcut ( ) { } @ Override public final EdgeSkipIterState setWeight ( double weight ) { } @ Override public final double getWeight ( ) { } @ Override public final EdgeIteratorState detach ( boolean reverseArg ) { } @ Override public final EdgeIteratorState copyPropertiesTo ( EdgeIteratorState edge ) { } @ Override public String getName ( ) { } @ Override public EdgeIteratorState setName ( String name ) { } @ Override public PointList fetchWayGeometry ( int mode ) { } @ Override public EdgeIteratorState setWayGeometry ( PointList list ) { } } @ Override long reverseFlags ( long edgePointer , long flags ) { } public void disconnect ( EdgeSkipExplorer explorer , EdgeIteratorState edgeState ) { } @ Override public AllEdgesSkipIterator getAllEdges ( ) { } class AllEdgeSkipIterator extends AllEdgeIterator implements AllEdgesSkipIterator { @ Override public final void setSkippedEdges ( int edge1 , int edge2 ) { } @ Override public final int getSkippedEdge1 ( ) { } @ Override public final int getSkippedEdge2 ( ) { } @ Override public final boolean isShortcut ( ) { } @ Override public final EdgeSkipIterState setWeight ( double weight ) { } @ Override public final double getWeight ( ) { } } @ Override protected SingleEdge createSingleEdge ( int edge , int nodeId ) { } class SingleLevelEdge extends SingleEdge implements EdgeSkipIterState { public SingleLevelEdge ( int edge , int nodeId ) { } @ Override public final void setSkippedEdges ( int edge1 , int edge2 ) { } @ Override public final int getSkippedEdge1 ( ) { } @ Override public final int getSkippedEdge2 ( ) { } @ Override public final boolean isShortcut ( ) { } @ Override public final EdgeSkipIterState setWeight ( double weight ) { } @ Override public final double getWeight ( ) { } } final void setWeight ( EdgeSkipIterState edge , double weight ) { } final double getWeight ( EdgeSkipIterState edge ) { } @ Override protected int loadEdgesHeader ( ) { } @ Override protected int setEdgesHeader ( ) { } @ Override public Graph getBaseGraph ( ) { } }

Fix:
throw new IllegalStateException ( ( ( ( ( "node<seq2seq4repair_space>" + nodeIndex ) + "<seq2seq4repair_space>is<seq2seq4repair_space>invalid.<seq2seq4repair_space>Not<seq2seq4repair_space>in<seq2seq4repair_space>[0," ) + ( getNodes ( ) ) ) + ")" ) ) ;