NullPointerException in collectd when evaluating in-memory threshold set
Description
The implementation of Bug2711 causes a NullPointerException, if resources cannot be found. Conditions that create this bug:
1) fresh install w/o a database 2) no pre-existing RRD files
Should be self explanatory. getEntityMap() returns null, and that condition is never handled in the caller. Attached is proof-of-concept diff for fix in 1.7x.
The implementation of Bug2711 causes a NullPointerException, if resources cannot be found. Conditions that create this bug:
1) fresh install w/o a database
2) no pre-existing RRD files
Should be self explanatory. getEntityMap() returns null, and that condition is never handled in the caller. Attached is proof-of-concept diff for fix in 1.7x.