OSX don' handle NPE