rem: url += ("&calid=" + encodeURIComponent(this.calId)); 
add: var calId = this.calId; if (calId) url += ("&calid=" + encodeURIComponent(calId)); 
context:     getCommandUrl:    function( wcapCommand )    {        var url = this.session.getCommandUrl(wcapCommand);        url += ("&calid=" + encodeURIComponent(this.calId));        return url;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fa325266ffa73287d45aed7b0452fbbfefc07f85/calWcapCalendar.js/buggy/calendar/providers/wcap/calWcapCalendar.js