I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 2d0e8b6e authored by zzz's avatar zzz
Browse files

fix configstats NPE

parent a034a8c4
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import java.util.List;
import java.util.StringTokenizer;
import net.i2p.stat.StatManager;
import net.i2p.util.Log;
/**
* Handler to deal with form submissions from the stats config form and act
......@@ -41,14 +40,10 @@ public class ConfigStatsHandler extends FormHandler {
if (stats != null) {
for (int i = 0; i < stats.length; i++) {
String cur = stats[i].trim();
if (_log.shouldLog(Log.DEBUG))
_log.debug("Stat: [" + cur + "]");
if ( (cur.length() > 0) && (!_stats.contains(cur)) )
_stats.add(cur);
}
}
if (_log.shouldLog(Log.DEBUG))
_log.debug("Updated stats: " + _stats);
}
public void setGraphList(String stats[]) {
......@@ -66,8 +61,6 @@ public class ConfigStatsHandler extends FormHandler {
} else {
_graphs = "";
}
if (_log.shouldLog(Log.DEBUG))
_log.debug("Updated graphs: " + _graphs);
}
public void setExplicitFilter(String foo) { _explicitFilter = true; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment