There are some patterns for checking whether a parameter to a method has been given a null value.
null
First, the classic one. It is common in self-made code
You can use the Objects Utility Class.
public void method1(String arg) { Objects.requireNonNull(arg); }
see http://docs.oracle.com/javase/7/docs/api/java/util/Objects.html#requireNonNull%28T%29