Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2181 by fabien.markart: org.jdiameter.client.impl.parser.AvpImpl.getRawData() NPE on empty Group
http://code.google.com/p/mobicents/issues/detail?id=2181

If I call an getRawData() on an Avp (Grouped) Object empty, ElementParser.encodeAvpSet(AvpSet avps) throws an NPE because avps is null.

I assume that either ElementParser.encodeAvpSet(AvpSet avps) or AvpImpl.getRawData() should return an empty array if AvpImpl.groupedData is null or if encodeAvpSet's argument is null.

Not critical as i can test avp.getGrouped() != null before calling getRawdata.

 java.lang.NullPointerException
at org.jdiameter.client.impl.parser.ElementParser.encodeAvpSet(ElementParser.java:276)
        at org.jdiameter.client.impl.parser.AvpImpl.getRawData(AvpImpl.java:179)

Reply via email to