query: Why adding objects to a static Collection causing a NullPointerException?
positive_passages.docid: 49
positive_passages.text: What is a NullPointerException, and how do I fix it?
negative_passages.docid: 64332
negative_passages.text: avoiding null reference exceptions
negative_passages.docid: 42612
negative_passages.text: Generics, arrays, and the ClassCastException
negative_passages.docid: 1816
negative_passages.text: Non-static variable cannot be referenced from a static context
negative_passages.docid: 63909
negative_passages.text: Adding elements to a collection during iteration
negative_passages.docid: 28762
negative_passages.text: Are static fields open for garbage collection?
negative_passages.docid: 140494
negative_passages.text: When are static variables initialized?
negative_passages.docid: 54392
negative_passages.text: How to call getClass() from a static method in Java?
negative_passages.docid: 73120
negative_passages.text: Nullpointerexception when trying to send data from activity to class
negative_passages.docid: 1605
negative_passages.text: What is the reason behind "non-static method cannot be referenced from a static context"?
negative_passages.docid: 8808
negative_passages.text: Strange Java null behavior in Method Overloading
negative_passages.docid: 102497
negative_passages.text: Inserting text gives objectcollection error
negative_passages.docid: 2116
negative_passages.text: IllegalArgumentException or NullPointerException for a null parameter?
negative_passages.docid: 112328
negative_passages.text: Error: "an object reference is required for the non-static field, method or property..."
negative_passages.docid: 29046
negative_passages.text: How can I initialise a static Map?
negative_passages.docid: 58035
negative_passages.text: Why are you not able to declare a class as static in Java?
negative_passages.docid: 30424
negative_passages.text: What does it mean to have an undefined reference to a static member?