Java null pointer exception

see S-1 Tops Split Error: Operation Exception. Index=size=0 - #4 by Unmanaged0292