Potential null pointer exception when using the CategoriesProcessor