This if is checking a constant which will never be null.  It should be checking this.freemarkerDebugPort.