1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 22:25:25 +02:00

[340080] [dstore] empty string should not be allowed as a DataElement ID

This commit is contained in:
David McKnight 2011-03-15 19:22:23 +00:00
parent e7833db671
commit 0337c28771

View file

@ -36,6 +36,7 @@
* David McKnight (IBM) - [331922] [dstore] enable DataElement recycling
* David McKnight (IBM) - [336257] [dstore] leading file.searator in DSTORE_LOG_DIRECTORY not handled
* David McKnight (IBM) - [283613] [dstore] Create a Constants File for all System Properties we support
* David McKnight (IBM) - [340080] [dstore] empty string should not be allowed as a DataElement ID
*******************************************************************************/
package org.eclipse.dstore.core.model;
@ -4019,7 +4020,7 @@ public final class DataStore
containsKey = _hashMap.containsKey(id);
}
if (!containsKey)
if (!containsKey && id.length() > 0)
{
return id;
}