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

ClickApp.processDirectory throws NullpointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: