query: How to rewrite my two methods so I do not get a NullPointerException?
positive_passages.docid: 49
positive_passages.text: What is a NullPointerException, and how do I fix it?
negative_passages.docid: 68713
negative_passages.text: Why is it Valid to Concatenate Null Strings but not to Call "null.ToString()"?
negative_passages.docid: 28239
negative_passages.text: Empty an ArrayList or just create a new one and let the old one be garbage collected?
negative_passages.docid: 81661
negative_passages.text: How can I re-write the conditionals for this button
negative_passages.docid: 137692
negative_passages.text: NullPointerException when working with arrays
negative_passages.docid: 108336
negative_passages.text: Nullable Object must have a value #2
negative_passages.docid: 85266
negative_passages.text: Unit testing a method that calls another method
negative_passages.docid: 96453
negative_passages.text: Caught Throwable or Exception is null
negative_passages.docid: 87728
negative_passages.text: ArgumentNullException or NullReferenceException from extension method?
negative_passages.docid: 6255
negative_passages.text: Is it safe to delete a NULL pointer?
negative_passages.docid: 42958
negative_passages.text: Method Overloading for null argument
negative_passages.docid: 96843
negative_passages.text: What will happen when I call a member function on a NULL object pointer?
negative_passages.docid: 119573
negative_passages.text: NullPointerException in Java with no StackTrace
negative_passages.docid: 101284
negative_passages.text: How to have two methods calling each other?
negative_passages.docid: 89487
negative_passages.text: Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?
negative_passages.docid: 146476
negative_passages.text: Java: Why aren't NullPointerExceptions called NullReferenceExceptions?
negative_passages.docid: 78156
negative_passages.text: String.equals() with multiple conditions (and one action on result)