gskinner/Zoe — Issue #2: RTE: com.gskinner.zoe.views.Main.updateLiveBoundsUpdate()
Author: robsilv
Created: 2012-01-31 13:53:04+00:00
State: open

Hi,

I had a small issue on first run with this method:

https://github.com/gskinner/Zoe/blob/master/src/com/gskinner/zoe/views/Main.mxml#L640

In line 640, a fileModel.selectedItem is assumed to be non-null, casing a runtime error.

I got around this by changing the code to:

var srcFile:SourceFileData = SourceFileData(fileModel.selectedItem);
if (srcFile) {
updateUI(srcFile.frameBounds);
updateCapture(srcFile.frameBounds);
}

Thanks
Rob