Fail earlier if we get a null URL.

This commit is contained in:
Michael Bayne
2013-05-06 09:45:46 -07:00
parent 3992d7c724
commit d5cbc48a6f
@@ -25,6 +25,7 @@ public class LiaisonRegistry
*/ */
public static DatabaseLiaison getLiaison (String url) public static DatabaseLiaison getLiaison (String url)
{ {
if (url == null) throw new NullPointerException("URL must not be null");
// see if we already have a liaison mapped for this connection // see if we already have a liaison mapped for this connection
DatabaseLiaison liaison = _mappings.get(url); DatabaseLiaison liaison = _mappings.get(url);
if (liaison == null) { if (liaison == null) {