public void addErrorListener(ANTLRErrorListener listener) {
		if (listener == null) {
			throw new NullPointerException("listener cannot be null.");
		}

		_listeners.add(listener);
	}
@exception NullPointerException if {@code listener} is {@code null}.
runtime/Java/src/org/antlr/v4/runtime/Recognizer.java