IQ type property is being initialized with null value. It will cause an unhandled exception in the method.
Initialising it with a blank String solves the issue, as it throws an IllegalArgumentException if no value is found in the IQ.
Plataform-Independent
A simple fix.
A simple fix
Assigned a default value to the "type" instance variable.