why no check for null instead of catching NPE?