--- a/tool/src/main/controller.java
+++ b/tool/src/main/controller.java
@@ -21,6 +21,7 @@
import java.io.PrintStream;
import java.util.logging.Level;
import java.util.logging.Logger;
+import script.log;
import www.RequestOrigin;
import www.WebRequest;
import www.WebServer;
@@ -116,8 +117,15 @@
// ){
+ if(newRequest == null){
+ log.write(is.ERROR, "CON001 - Received a null request");
+ return "";
+ }
+
// if there is no method selected, just call the default one
- if(newRequest.scriptMethod.isEmpty()){
+ if((newRequest.scriptMethod == null)
+ ||(newRequest.scriptMethod.isEmpty())
+ ){
newRequest.scriptMethod = is.methodDefault;
}