Fixed potential NPE's in RawException