You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ft...@apache.org on 2014/06/02 09:19:11 UTC

git commit: [flex-sdk] [refs/heads/develop] - FLEX-34347: propagate breakpoint shouldn't throw an NPE when the location is not found

Repository: flex-sdk
Updated Branches:
  refs/heads/develop f63264719 -> f7fdee9cb


FLEX-34347: propagate breakpoint shouldn't throw an NPE when the location is not found


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/f7fdee9c
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/f7fdee9c
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/f7fdee9c

Branch: refs/heads/develop
Commit: f7fdee9cb529bfb71d571e296d2aaeab8c5abfb4
Parents: f632647
Author: Fr�d�ric THMOAS <ft...@apache.org>
Authored: Mon Jun 2 08:18:31 2014 +0100
Committer: Fr�d�ric THMOAS <ft...@apache.org>
Committed: Mon Jun 2 08:18:31 2014 +0100

----------------------------------------------------------------------
 .../debugger/src/java/flex/tools/debugger/cli/DebugCLI.java  | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f7fdee9c/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
----------------------------------------------------------------------
diff --git a/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java b/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
index a84e87a..90d619c 100644
--- a/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
+++ b/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
@@ -2274,12 +2274,10 @@ public class DebugCLI implements Runnable, SourceLocator {
                 int line = l.getLine();
                 SourceFile f = l.getFile();
                 Location newLoc = findAndEnableBreak(swf, f, line);
-                if (newLoc != null)
+                if (newLoc != null) {
                     bp.addLocation(newLoc);
-                else newLoc.getFile();
-
-                dumpAddedBreakpoint(bp);
-
+                    dumpAddedBreakpoint(bp);
+                }
             } catch (InProgressException ipe) {
                 if (breakpointCount() > 0) {
                     Map<String, Object> args = new HashMap<String, Object>();