changeset 6146:04dd1f598ef9

Removed unnecessary call of map.containsKey(x).
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 01 Jun 2013 09:10:15 +0200
parents 21d92d54303e
children 073268a137d5
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Sat Jun 01 09:02:51 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Sat Jun 01 09:10:15 2013 +0200
@@ -240,8 +240,8 @@
                     @Override
                     public void onItemHover(ItemHoverEvent event) {
                         String river = ((LinkItem)event.getItem()).getLinkTitle();
-                        if (riverHighlight.containsKey(river)) {
-                            Img item = riverHighlight.get(river);
+                        Img item = riverHighlight.get(river);
+                        if (item != null) {
                             item.setVisible(true);
                             if (selected != null && !selected.equals(river)) {
                                 riverHighlight.get(selected).setVisible(false);

http://dive4elements.wald.intevation.org