Nullpointer exception when trying to set a SaveAs cell to ‘null’

Hi,

Can you help me why I get a nullpointer exception when I’m trying to set a cell to null during a SaveAs event?

It works at the most of the cells but I receive this error at some.

The cell is on page three if it matters
ISaveAsEventInfo f = (ISaveAsEventInfo) req; IItem newObj = (IItem)
session.getObject(ItemConstants.CLASS_PART, f.getNewNumber());
...
// get attributes list from an SQL
ArrayList<Map> attributeList = dao.getExcludedAttributes(partType);
for (int i = 0; i < attributeList.size(); i++) {
Map<String, Object> attribute = attributeList.get(i);
int att = (Integer) attribute.get("ATTRIBUTE");
...
newObj.setValue(att, null);
}

Agile User Asked on April 3, 2020 in Agile PLM (v9).
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.