Skip to content

Commit

Permalink
fixed "Null" exception in delete event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ramvibhakar committed Aug 4, 2015
1 parent b813feb commit e3c0030
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@
_setupSketchSave(); //_isXML = true;
//if action bar is displayed and there is a delete sketch flag
if (KSketch_HomeView_IconItemRenderer.openActionBar && _deleteSketchFlag)
_cacheControl.deleteSketch(sketchId, int(sketchVersion), sketchName);
//if (KSketch_HomeView_IconItemRenderer.openActionBar && _deleteSketchFlag)
// _cacheControl.deleteSketch(sketchId, int(sketchVersion), sketchName);
_isSwipe = false;
}
Expand All @@ -482,10 +482,10 @@
PopUpManager.centerPopUp(_canvasNotice);
}
protected function view_addedToStageHandler(event:Event):void
{
// TODO Auto-generated method stub
protected function view_addedToStageHandler(event:Event):void
{
// TODO Auto-generated method stub
}
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ package sg.edu.smu.ksketch2.canvas.controls
} else if (comparator.compare(cacheList.itemAt(x),webList.itemAt(y)) == 1) {
if(isDeletedSketch(webList.itemAt(y).sketchId)) {
if(fromWeb) {
deleteSketchOnWeb(isDeletedSketch(webList.itemAt(y).sketchId));
deleteSketchOnWeb(webList.itemAt(y).sketchId);
}
}else {
allList.add(webList.itemAt(y));
Expand Down Expand Up @@ -197,7 +197,7 @@ package sg.edu.smu.ksketch2.canvas.controls
_httpService.url = KSketchWebLinks.jsonurlSketch + "/" + parameter;
_httpService.send();
} else {
_homeView.displaySketchList(retrieveAllSketchList(fromWeb));
_homeView.displaySketchList(cachedList);
}
}
else
Expand Down

0 comments on commit e3c0030

Please sign in to comment.