rem: var flowUri = view.getCustomFlow(); if (flowUri != null && flowUri != "") { log("debug", "customFlow uri: [" + flowUri + "]");  cocoon.load(flowUri); 
add: var flowUri; if (view != null) { flowUri = view.getCustomFlow(); if (flowUri != null && flowUri != "") { log("debug", "customFlow uri: [" + flowUri + "]");  cocoon.load(flowUri); } } else { log("debug", "Usecase does not define a view."); 
context: function loadCustomFlow(view) {    var flowUri = view.getCustomFlow();    if (flowUri != null && flowUri != "") { // for some reason, flowUri is not correctly cast into a Boolean, so "if (flowUri)" does not work          log("debug", "customFlow uri: [" + flowUri + "]");          //loopFlow = new Function(prepareCustomFlow(flowUri));          cocoon.load(flowUri);    }}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/5950da15528f14729d0b785fe484f5d74d7b7804/usecases.js/buggy/src/webapp/lenya/usecases/usecases.js