fdorg/flashdevelop — pull request #157 by JoeRobich (2014-03-26 20:12:17+00:00)
Title: Don't add null locations to breakpointLocations

While debugging I accidentally added a breakpoint on an empty line. When I removed the breakpoint FD crashed on me. I traced it back to Location coming back null when setting a breakpoint for a blank line. It would then get added to breakpointLocations and when cleared it would throw a NullReferenceExpection. With this change the breakpoint never gets added to breakpointLocations, but does show up in UI as expected. Can add and remove the breakpoint without crash and other breakpoints still break appropriately.