SaiUpadhyayula / spring-reddit-clone

Reddit clone built using Spring Boot, Spring Security with JWT Authentication, Spring Data JPA with MySQL, Spring MVC. The frontend is built using Angular - You can find the frontend source code here - https://github.com/SaiUpadhyayula/angular-reddit-clone
658 stars 386 forks source link

getVoteCount() returning a nullpointer exception #32

Open yugmeshdev opened 2 years ago

yugmeshdev commented 2 years ago

While testing votes api got this issue(everything is exactly same as this github code): "Cannot invoke \"java.lang.Integer.intValue()\" because the return value of \"com.example.springredditclone.model.Post.getVoteCount()\" is null",