Hi bemshaswing,
This is the code that creates this exception.
Code:
if (result.trim().length() > 0) {
if (COMM.isPhoneField(fg) || COMM.isEmailField(fg) || COMM.isURLField(attribute)) {
ActiveAutoTextEditField tt = new ActiveAutoTextEditField(keylabel, result, lenid1,Field.FOCUSABLE);
tt.setEditable(false);
vfmfields.add(tt);
} else {
AutoTextEditField ttt = new AutoTextEditField(keylabel,result, lenid1, Field.FOCUSABLE);
ttt.setEditable(false);
vfmfields.add(ttt);
}
}
If I comment the "if (result.trim().length() > 0)" statement checking the exception is no more there, but this will show on the screen some fields(ActiveAutoTextEditField/ AutoTextEditField) that are not intended to show (since they may not contain any values-- empty fields on screen is inappropriate).
and this exception causes only on device 8800, on other devices it's not creating any exception if you not comment the
"if (result.trim().length() > 0)" statement checking
Please tell me If you have any idea to resolve ?
Thanks
Anand