forked from I2P_Developers/i2p.i2p
* OutNetMessage: Fix NPE when log level = INFO (ticket #676)
This commit is contained in:
@ -325,7 +325,7 @@ public class OutNetMessage {
|
|||||||
buf.append(" with onFailedReply job: ").append(_onFailedReply);
|
buf.append(" with onFailedReply job: ").append(_onFailedReply);
|
||||||
if (_onFailedSend != null)
|
if (_onFailedSend != null)
|
||||||
buf.append(" with onFailedSend job: ").append(_onFailedSend);
|
buf.append(" with onFailedSend job: ").append(_onFailedSend);
|
||||||
if (_log.shouldLog(Log.INFO)) {
|
if (_timestamps != null && _timestampOrder != null && _log.shouldLog(Log.INFO)) {
|
||||||
buf.append(" {timestamps: \n");
|
buf.append(" {timestamps: \n");
|
||||||
renderTimestamps(buf);
|
renderTimestamps(buf);
|
||||||
buf.append("}");
|
buf.append("}");
|
||||||
@ -335,7 +335,8 @@ public class OutNetMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only useful if log level is INFO or DEBUG
|
* Only useful if log level is INFO or DEBUG;
|
||||||
|
* locked_initTimestamps() must have been called previously
|
||||||
*/
|
*/
|
||||||
private void renderTimestamps(StringBuilder buf) {
|
private void renderTimestamps(StringBuilder buf) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
|
Reference in New Issue
Block a user