return early if no params where supplied master
authorFelix Schumacher <felix.schumacher@internetallee.de>
Sat, 28 Aug 2010 09:40:48 +0000 (11:40 +0200)
committerFelix Schumacher <felix.schumacher@internetallee.de>
Sat, 28 Aug 2010 09:40:48 +0000 (11:40 +0200)
src/org/mcb/services/udac.java

index 9d9a69d..8ae960f 100644 (file)
@@ -21,6 +21,9 @@ public class udac {
 
        public UserBean login(String userId, String password) {
                // preparing some objects for connection
 
        public UserBean login(String userId, String password) {
                // preparing some objects for connection
+               if (userId == null || password == null) {
+                       return null;
+               }
                Connection currentCon = null;
                ResultSet rs = null;
                PreparedStatement stmt = null;
                Connection currentCon = null;
                ResultSet rs = null;
                PreparedStatement stmt = null;