1.1 --- a/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java Thu Jan 31 16:58:27 2013 +0100
1.2 +++ b/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java Thu Jan 31 17:39:47 2013 +0100
1.3 @@ -55,6 +55,9 @@
1.4 * perform an HTTP query and obtain a resource relative to the page.
1.5 */
1.6 public void setHttpResource(String relativePath, String mimeType, String content) {
1.7 + if (relativePath == null || mimeType == null || content == null) {
1.8 + throw new NullPointerException();
1.9 + }
1.10 this.httpPath = relativePath;
1.11 this.httpType = mimeType;
1.12 this.httpContent = content;