directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk>
Subject DefaultAttribute NPE
Date Tue, 03 Oct 2017 11:15:04 GMT
i am reinvestigating some code that i previously had working and now i 
get a NPE

AttributeType attributeType = new AttributeType("mail");
StringValue stringValue = new StringValue(attributeType, "test@test.com");
Attribute attribute = new DefaultAttribute(attributeType, stringValue);

on the third line i get a NullPointerException and stepping through the 
code inside DefaultAttribute at line 1857 isHR = 
attributeType.getSyntax().isHumanReadable(); attributeType.syntax is null.

Mime
View raw message