java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.dmg.pmml.PMML.hasModels()' on a null object reference

GitHub | leslietso | 7 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

    Attempt to invoke virtual method 'boolean org.dmg.pmml.PMML.hasModels()' on a null object reference

    GitHub | 7 months ago | leslietso
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.dmg.pmml.PMML.hasModels()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean org.dmg.pmml.PMML.hasModels()' on a null object reference

      at org.jpmml.evaluator.ModelEvaluator.selectModel()
    2. org.jpmml.evaluator
      NearestNeighborModelEvaluator.<init>
      1. org.jpmml.evaluator.ModelEvaluator.selectModel(ModelEvaluator.java:584)
      2. org.jpmml.evaluator.nearest_neighbor.NearestNeighborModelEvaluator.<init>(NearestNeighborModelEvaluator.java:105)
      2 frames
    3. com.mygdx.game
      StartGdxGame.render
      1. com.mygdx.game.DrawView.pitchAngle(DrawView.java:295)
      2. com.mygdx.game.StartGdxGame.render(StartGdxGame.java:113)
      2 frames
    4. libGDX Android Backend
      AndroidGraphics.onDrawFrame
      1. com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:459)
      1 frame
    5. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1522)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
      2 frames