NullPointer Error Fix

Fixed line that caused NullPointer error