merge from 11334

* See identifiers columns when delete records - Fix NPE problem reported in forums
https://sourceforge.net/projects/adempiere/forums/forum/610548/topic/3525006

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2877111
This commit is contained in:
vpj-cd 2010-01-23 21:14:49 +00:00
parent 3c456c93ff
commit 06c846a1d3
2 changed files with 4 additions and 2 deletions

View File

@ -1868,7 +1868,8 @@ public final class APanel extends CPanel
} else {
final int id = m_curTab.getKeyID(i);
String value = DB.getSQLValueStringEx(null, sql, id);
value = value.replace(" - ", " | ");
if (value != null)
value = value.replace(" - ", " | ");
displayValue.append(value);
// Append ID
if (displayValue.length() == 0 || CLogMgt.isLevelFine())

View File

@ -1448,7 +1448,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
} else {
final int id = curTab.getKeyID(i);
String value = DB.getSQLValueStringEx(null, sql, id);
value = value.replace(" - ", " | ");
if (value != null)
value = value.replace(" - ", " | ");
displayValue.append(value);
// Append ID
if (displayValue.length() == 0 || CLogMgt.isLevelFine())