IDEMPIERE-2038:Error when add new access in Role window

This commit is contained in:
hieplq 2014-07-03 15:28:06 +07:00
parent c3f9e44ca0
commit 32c7dcf9c4
1 changed files with 2 additions and 2 deletions

View File

@ -929,13 +929,13 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
if (keyNo != -1 || uuid != null) if (keyNo != -1 || uuid != null)
{ {
if ( ( keyNo != -1 && keyNo != m_mTable.getKeyID(m_currentRow) ) if ( ( keyNo != -1 && keyNo != m_mTable.getKeyID(m_currentRow) )
|| ( uuid != null && uuid.compareTo(m_mTable.getUUID(m_currentRow)) != 0) ) // something changed || (uuid != null && m_mTable.getUUID(m_currentRow) == null) || ( uuid != null && uuid.compareTo(m_mTable.getUUID(m_currentRow)) != 0) ) // something changed
{ {
int size = getRowCount(); int size = getRowCount();
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
if ( ( keyNo != -1 && keyNo == m_mTable.getKeyID(i) ) if ( ( keyNo != -1 && keyNo == m_mTable.getKeyID(i) )
|| ( uuid != null && uuid.compareTo(m_mTable.getUUID(i)) == 0) ) || ( uuid != null && m_mTable.getUUID(i) != null && uuid.compareTo(m_mTable.getUUID(i)) == 0) )
{ {
m_currentRow = i; m_currentRow = i;
break; break;