Cannot invoke method on null object. Non static method это определение. non-static.