Uploaded image for project: 'Click'
  1. Click
  2. CLK-248

ClickApp.processDirectory throws NullpointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      OC4J - Oracle Internet Application Server 10.1.2
      Click 1.4RC1

      Description

      servletContext.getResourcePaths(dirPath) in processDirectory can return null - on Tomcat 5 this seems not to happend but on OC4J container it does. According to the Java API doc for getResourcePaths: "a Set containing the directory listing, or null if there are no resources in the web application whose path begins with the supplied path". This is a Blocker for us.

      private void processDirectory(String dirPath, List fileList) {
      Set resources = servletContext.getResourcePaths(dirPath);
      // TODO: hw: fix
      if (resources == null)

      { return; }

      for (Iterator i = resources.iterator(); i.hasNext() {
      String resource = (String) i.next();
      .....

        Attachments

          Activity

            People

            • Assignee:
              medgar Malcolm Edgar
              Reporter:
              harry.wissiak@audatex.ch harryw
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: