throwing a NPE if no materialdata found