Fixed Nullpointer Issue on getting cacheScore