Community
Participate
Working Groups
Build Identifier: 20110615-0604 When using ignore paths with publishSmart, an NPE can occur if any of the ignored paths have subdirectories. Take a look at lines 349-370: http://dev.eclipse.org/viewcvs/viewvc.cgi/servertools/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/util/PublishHelper.java?view=markup&revision=1.9&root=WebTools_Project If you have an ignore path (suppose WEB-INF/foo), and a subdirectory of WEB-INF/foo exists on disk (such as WEB-INF/foo/bar), then, at the point in the recursion where WEB-INF is being processed as the path, and the ignore list is "foo", an empty element is going to be added to ignoreChildPaths at line 360. In the following recursive call, the path to be processed will be WEB-INF/foo, and the ignore list will be an array of 1 element, containing an empty path. At line 359, there will be an NPE, because preservePath.segment(0) will be null. Reproducible: Always