Why is there a Null Pointer Exception in this Java Code?
- by algorithmicCoder
This code takes in users and movies from two separate files and computes a user score for a movie. When i run the code I get the following error:
Exception in thread "main" java.lang.NullPointerException at RecommenderSystem.makeRecommendation(RecommenderSystem.java:75) at RecommenderSystem.main(RecommenderSystem.java:24)
I believe the null…