Surround JavaNullPointer Exception

Surround JavaNullPointer Exception