String autocomplete NPE

Description

Hello.
How get NPE with String autocomplete:
1) Open window Table and Column, select C_BPartner;
2) Select column Description;
3) Set Autocomplete;
4) Switch to Garder and open window Bussiness Partner;
5) NPE.

Tested on official demo.
I`m solved this error in attachment patch.
Maybe String autocomplete used only for mandatory fields?

Environment

iDempiere v2.1

Activity

Show:
ERP OpenSource Italia
August 29, 2017, 5:14 PM

Hi,
this bug is still present in 4.1, but maybe a better solution is to fix it in WStringEditor, its enough to add null check in init (line 168) and dinamicDisplay (line 304) by checking if s != null in:

for(String s : items) {
combo.appendItem(s);
}

I am sorry i cant provide a patch file.

Best regards,
Silvano

Assignee

Carlos Ruiz

Reporter

Никита Полковников

Labels

Tested By

None

Components

Affects versions

Priority

Major
Configure