summaryrefslogtreecommitdiff
path: root/scripting/java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-17 10:43:11 +0200
committerNoel Grandin <noel@peralex.com>2014-12-19 10:41:54 +0200
commite92d3e90075573a374bfc39449c0e74f518890ba (patch)
tree300587e7a1c238289725c6e0325c43563b60954a /scripting/java
parent3090d96f73714d5f2cc151e94a202010b5e96cf3 (diff)
java: scripting: fix bug in removing model from map
found by PMD Change-Id: I4bd35dd30f6c77aad96932216d8459b812004a88
Diffstat (limited to 'scripting/java')
-rw-r--r--scripting/java/com/sun/star/script/framework/io/XStorageHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java b/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java
index 0856e6deb2f8..7123ca5c8973 100644
--- a/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java
+++ b/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java
@@ -181,7 +181,7 @@ public class XStorageHelper implements XEventListener {
if (model != null) {
LogUtils.DEBUG(" Disposing doc " + model.getURL());
- modelMap.remove(model);
+ modelMap.remove(PathUtils.getOidForModel(model));
}
}