Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix npe in ProjectManager.js #123

Merged
merged 3 commits into from Jan 21, 2012
Merged

Fix npe in ProjectManager.js #123

merged 3 commits into from Jan 21, 2012

Conversation

njx
Copy link
Member

@njx njx commented Jan 21, 2012

There's some code in ProjectManager.js that's calling EditorManager, but EditorManager wasn't imported, so an exception was being thrown. This fixes the problem.

jasonsanjose added a commit that referenced this pull request Jan 21, 2012
Fix npe in ProjectManager.js
@jasonsanjose jasonsanjose merged commit aaa7f35 into master Jan 21, 2012
@peterflynn
Copy link
Member

I believe this causes issue #84 to repro again.

Chris and I looked at this earlier on Friday. Basically, jQuery is not robust to event handlers crashing: if one handler crashes, no more handlers are run because the whole call stack unwinds. So, the NPE was fixing #84 by preventing the jsTree dblclick handler from ever running. With the crash fixed, the bug repros again -- so focusEditor() itself is not actually a fix for the issue.

Since this is clearly and improvement, though, I'll let this lie and then reopen #84 :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants