Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logger not declared lead to NPE #14

Closed
sirnono opened this issue Mar 26, 2019 · 1 comment
Closed

logger not declared lead to NPE #14

sirnono opened this issue Mar 26, 2019 · 1 comment
Milestone

Comments

@sirnono
Copy link

sirnono commented Mar 26, 2019

below logger.debug line can lead to NPE if logger declaration not reached.
First initialize the logger or use System.out.

From Main.java

    private static Logger logger = null;

public static void main(String... args) {
	int resultValue = 0;
	try {
		resultValue = mainInternal(args);
	} catch (Exception e) {
		System.err.println("We got an exception on merge: " + StringUtils.join(args, " "));
		e.printStackTrace();
		System.exit(1);
	}
	logger.debug("Exiting with exit code {}", resultValue);
	System.exit(resultValue);
}
cecom added a commit that referenced this issue Mar 30, 2020
@cecom
Copy link
Owner

cecom commented Mar 30, 2020

Sorry for fixing it so late. Fixed it with the 1.7.0.

@cecom cecom added this to the 1.7.0 milestone Mar 30, 2020
@cecom cecom closed this as completed Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants