Fixed NPE in Inverter