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

NPE in FilePrinter #93

Closed
iliYF opened this issue Dec 17, 2020 · 3 comments
Closed

NPE in FilePrinter #93

iliYF opened this issue Dec 17, 2020 · 3 comments

Comments

@iliYF
Copy link

iliYF commented Dec 17, 2020

java.lang.NullPointerException

Attempt to invoke virtual method 'void java.io.BufferedWriter.write(java.lang.String)' on a null object reference
com.elvishew.xlog.printer.file.FilePrinter$Writer.void appendLog(java.lang.String)(SourceFile:13)

# Thread-73(1151)
java.lang.NullPointerException
Attempt to invoke virtual method 'void java.io.BufferedWriter.write(java.lang.String)' on a null object reference

1 com.elvishew.xlog.printer.file.FilePrinter$Writer.void appendLog(java.lang.String)(SourceFile:13)
2 com.elvishew.xlog.printer.file.FilePrinter.void doPrintln(long,int,java.lang.String,java.lang.String)(SourceFile:28)
3 com.elvishew.xlog.printer.file.FilePrinter.void access$200(com.elvishew.xlog.printer.file.FilePrinter,long,int,java.lang.String,java.lang.String)(SourceFile:1)
4 com.elvishew.xlog.printer.file.FilePrinter$Worker.void run()(SourceFile:2)
5 java.lang.Thread.run(Thread.java:919)
@LCrazy
Copy link

LCrazy commented Jan 4, 2021

Have you solved it?

@elvishew
Copy link
Owner

elvishew commented Jan 8, 2021

@iliYF Have you find out the root reason of NPE? Why the bufferedWriter is null before appendLog

@elvishew
Copy link
Owner

Track in #70

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

3 participants