java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Feature Model UI defect
    via GitHub by meinicke
    ,
  • Wrong synchronization
    via Stack Overflow by Dzung Nguyen
    ,
  • FULL PRODUCT VERSION : java -version java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) ADDITIONAL OS VERSION INFORMATION : $ cat /etc/*release* Oracle Solaris 11.1 SPARC Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved. Assembled 06 November 2013 EXTRA RELEVANT SYSTEM CONFIGURATION : java console application A DESCRIPTION OF THE PROBLEM : java.lang.NullPointerException at java.util.LinkedList$ListItr.next(LinkedList.java:893) at ru.org.icad.mishka.app ... (YearOrderSelection.java:136) at ... How to get it: 1. Create list and fill it by parallelStream and filter public LinkedList<YearCustomerOrder> getByPlantAndFormId(String plantId, String formId) { final LinkedList<YearCustomerOrder> res = new LinkedList<>(); someFullList.parallelStream().filter((thi) -> (thi.getPlant().getId().equals(plantId) && thi.getProduct().getForm().getId().equals(formId))).forEach((thi) -> res.add(thi)); return res; } 2. Run cycle for this list for (Order order : orders) { <- NPE here. Do not depends from type of cycle ... } STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : java.lang.NullPointerException at java.util.LinkedList$ListItr.next(LinkedList.java:893) at ru.org.icad.mishka.app ... (YearOrderSelection.java:136) at ... How to get it: 1. Create list and fill it by parallelStream and filter public LinkedList<YearCustomerOrder> getByPlantAndFormId(String plantId, String formId) { final LinkedList<YearCustomerOrder> res = new LinkedList<>(); someFullList.parallelStream().filter((thi) -> (thi.getPlant().getId().equals(plantId) && thi.getProduct().getForm().getId().equals(formId))).forEach((thi) -> res.add(thi)); return res; } 2. Run cycle for this list for (Order order : orders) { <- NPE here. Do not depends from type of cycle ... } REPRODUCIBILITY : This bug can be reproduced always.
    via by Webbug Group,
  • GitHub comment 425#247672833
    via GitHub by mibby
    ,
  • GitHub comment 304#249336036
    via GitHub by mibby
    ,
  • GitHub comment 308#254362245
    via GitHub by mibby
    ,
    • java.lang.NullPointerException at java.util.LinkedList$ListItr.next(LinkedList.java:893) at org.jetbrains.spek.junit.JUnitDescriptionCache.create(JUnitDescriptionCache.kt:45) at org.jetbrains.spek.junit.JUnitDescriptionCache.get(JUnitDescriptionCache.kt:20) at org.jetbrains.spek.junit.JUnitDescriptionCache.create(JUnitDescriptionCache.kt:30) at org.jetbrains.spek.junit.JUnitDescriptionCache.get(JUnitDescriptionCache.kt:20) at org.jetbrains.spek.junit.JUnitSpekRunner.getDescription(JUnitSpekRunner.kt:23) at com.intellij.junit4.JUnit4IdeaTestRunner.getDescription(JUnit4IdeaTestRunner.java:123) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:99) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,