forked from I2P_Developers/i2p.i2p
final and null check
This commit is contained in:
@@ -14,7 +14,7 @@ package net.i2p.util;
|
||||
*
|
||||
*/
|
||||
class LogLimit {
|
||||
private String _rootName;
|
||||
private final String _rootName;
|
||||
private int _limit;
|
||||
|
||||
public LogLimit(String name, int limit) {
|
||||
|
||||
@@ -60,7 +60,9 @@ class LogRecordFormatter {
|
||||
buf.append(getPriority(rec, manager.getContext()));
|
||||
break;
|
||||
case LogManager.MESSAGE:
|
||||
buf.append(getWhat(rec));
|
||||
String msg = getWhat(rec);
|
||||
if (msg != null)
|
||||
buf.append(msg);
|
||||
break;
|
||||
default:
|
||||
buf.append(format[i]);
|
||||
|
||||
Reference in New Issue
Block a user