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.

Environment

Operating System: All Platform: PC

Acceptance / Success Criteria

None

Attachments

1

Lucidchart Diagrams

Activity

Show:

Benjamin Reed July 31, 2009 at 1:09 PM

  •  

    •  

      • has been marked as a duplicate of this bug. ***

Alejandro Galue June 18, 2009 at 4:39 PM

Bill,

Again, thank you very much for catch this.

Fixed on trunk rev.13715.

I applied the patch and added a junit test on ThresholdingVisitorTest to validate that the patch is working.

Bill Dymek June 16, 2009 at 6:56 PM

forgot one:

3) no thresholds configured in a given RRD group to evaluate.

Bill Dymek June 16, 2009 at 6:28 PM

Created an attachment (id=842)
NPE patch for ThresholdingSet

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created June 16, 2009 at 6:27 PM
Updated January 27, 2017 at 4:26 PM
Resolved October 1, 2009 at 2:06 PM