NPE in PanelTypeHelper