mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-18 22:45:23 +02:00
[340080] [dstore] empty string should not be allowed as a DataElement ID
This commit is contained in:
parent
e7833db671
commit
0337c28771
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@
|
||||||
* David McKnight (IBM) - [331922] [dstore] enable DataElement recycling
|
* 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) - [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) - [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;
|
package org.eclipse.dstore.core.model;
|
||||||
|
@ -4019,7 +4020,7 @@ public final class DataStore
|
||||||
containsKey = _hashMap.containsKey(id);
|
containsKey = _hashMap.containsKey(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!containsKey)
|
if (!containsKey && id.length() > 0)
|
||||||
{
|
{
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue