1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

performance fix - when dealing with spirit stuff

This commit is contained in:
David McKnight 2006-11-16 15:44:56 +00:00
parent 9545a65bbe
commit a3c55feef7

View file

@ -757,7 +757,8 @@ public final class DataElement implements IDataElement
*/
public void setAttribute(int attributeIndex, String attribute)
{
if ((attributeIndex == DE.A_NAME) && (getAttribute(DE.A_NAME).equals(getAttribute(DE.A_VALUE))))
String nameAttribute = getAttribute(DE.A_NAME);
if ((attributeIndex == DE.A_NAME) && (nameAttribute != null && nameAttribute.equals(getAttribute(DE.A_VALUE))))
{
_attributes[DE.A_VALUE] = attribute;
}