IfInfo can throw NullPointerException

Description

On a customer machine, we ran into a NPE during SNMP data collection because IfInfo was trying to construct a file path with a null element.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger November 28, 2013 at 11:10 AM

I fixed this by added a check for a null resource label inside the IfInfo class. The code will now throw a FileNotFoundException if it encounters a problem and all of the collection code will ignore persistence of that resource instead of throwing an uncaught exception. Marking as fixed.

commit 902ede78120ea9828ed7ca33d806c3aa81a807c6

Seth Leger November 28, 2013 at 11:06 AM

Here's the stack trace:

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

PagerDuty

Created November 28, 2013 at 11:05 AM
Updated January 27, 2017 at 4:21 PM
Resolved November 28, 2013 at 11:10 AM