Skip non-existing properties.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 30 Jul 2012 09:58:17 +0000 (11:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 30 Jul 2012 09:58:17 +0000 (11:58 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/admin/AdminBasePage.java

index 2f4d526..66ba7bc 100644 (file)
@@ -73,7 +73,10 @@ public class AdminBasePage extends BasePage {
                                propertiesToDelete.add(property.getKey());
                                continue;
                        }
-                       String value = request.getServletRequest().getParameter("value." + property.getKey()).trim();
+                       String value = request.getServletRequest().getParameter("value." + property.getKey());
+                       if (value == null) {
+                               continue;
+                       }
                        object.getProperties().set(property.getKey(), value);
                }