fixing NPE during app deployment