I have code that has been working fine for quite some time but started getting a null pointer error after upgrading to the latest nightly. I worked my way backwards and discovered that it works OK in the 8/31 SmartGWT EE build but is broken starting 9/1.
The code iterates over the fields in a data source ...
The NPE happens on the field.getName().startWith("IATT") call. Presumably field.getName() is null.
The code iterates over the fields in a data source ...
Code:
for (DataSourceField field : itemSummaryDS.getFields()) { if (field.getName().startsWith("IATT")) { // Do some things with the field } }
Comment