04-12-2013 08:05 AM
UserEntity user = new UserEntity(userId);
user.setEmail(entry.get("mail").getString());
user.setLastName(entry.get("sn").getString());
user.setFirstName(entry.get("givenName").getString());
Attribute photoAttr = entry.get("jpegPhoto");
if(photoAttr != null) {
user.setPicture(new Picture(photoAttr.getBytes(), "image/jpeg"));
}
The UserEntity.setPicture method has the following code (lines 83 to 90) if (picture!=null) {
pictureByteArray = new ByteArrayEntity(picture.getMimeType(), picture.getBytes());
Context
.getCommandContext()
.getDbSqlSession()
.insert(pictureByteArray);
pictureByteArrayId = pictureByteArray.getId();
} else {
When Context.getCommandContext() is executed null is returned with the consequent Nullpointerexception.04-15-2013 05:44 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.