[hg] main-silver: #215238: Fix a problem in the addition of addi...

  • From:
  • To:
  • Subject: [hg] main-silver: #215238: Fix a problem in the addition of addi...
  • Date: Sat, 24 Nov 2012 04:56:05 -0800

changeset f8e9cf87bd13 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f8e9cf87bd13
description:
        #215238: Fix a problem in the addition of additional class paths from 
opened projects.

diffstat:

 
debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java
 |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (33 lines):

diff --git 
a/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java
 
b/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java
--- 
a/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java
+++ 
b/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java
@@ -1485,6 +1485,9 @@
         @Override
         public void pathsAdded(final GlobalPathRegistryEvent event) {
             List<URL> changedPaths = getChangedPaths(event);
+            if (changedPaths == null) {
+                return ;
+            }
             synchronized (rootsLock) {
                 if (addedRoots == null) {
                     addedRoots = changedPaths;
@@ -1498,6 +1501,9 @@
         @Override
         public void pathsRemoved(final GlobalPathRegistryEvent event) {
             List<URL> changedPaths = getChangedPaths(event);
+            if (changedPaths == null) {
+                return ;
+            }
             synchronized (rootsLock) {
                 if (removedRoots == null) {
                     removedRoots = changedPaths;
@@ -1509,6 +1515,9 @@
         }
         
         private List<URL> getChangedPaths(final GlobalPathRegistryEvent 
event) {
+            if (!ClassPath.SOURCE.equals(event.getId())) {
+                return null;
+            }
             List<URL> urls = new ArrayList<URL>();
             for (ClassPath cp : event.getChangedPaths()) {
                 for (Entry entry : cp.entries()) {

[hg] main-silver: #215238: Fix a problem in the addition of addi...

mentlicher 11/24/2012

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close