JAL-1478 Fixed ArrayIndexOutOfBoundsException while performing NW mapping