java.lang.NullPointerException

Stack Overflow | bhanwar rathore | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Spring @Autowired field is null?

    Stack Overflow | 10 months ago | bhanwar rathore
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.elastic.controller.MainController.getUsers()
    2. com.elastic.controller
      MainController.getUsers
      1. com.elastic.controller.MainController.getUsers(MainController.java:38)
      1 frame
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3 frames