Make type lookup safer
Issue #46
resolved
The lookupType attribute can return null. The attribute should be made safer by instead returning UnknownType.
Comments (2)
-
reporter -
reporter - changed status to resolved
Made lookupType non-null
Program.lookupType(String,String) now returns the UnknownType instance for failed type lookups.
fixes
#46(bitbucket)→ <<cset 416320d9c17c>>
- Log in to comment
In most cases the result of
lookupType
is checked for nullness, however some standard type lookups are not null-checked, for example the ones below:Normally these types will be available, but if they for some reason are not (misconfigured boot classpath) then we get a NullPointerException.