Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2102

ParseSpecification.java:1625 produces NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.1.3, 4.1.5
    • 4.1.7
    • None
    • None
    • XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot

    Description

      All I am doing is extending Image component to animate some live transparent text on it.

      The following code does not check for null on resource.

      Therefore... for whatever reason my webapp is not parsing... it produces NPE.

      There should be a check here.

      I am researching the reason why getResource() returns null.

      ParseSpecification.java:1625
      private void parseDocument()
      {
      InputStream stream = null;

      Resource resource = getResource();

      boolean success = false;

      try
      {
      if (_parser == null)
      _parser = _parserFactory.newSAXParser();

      URL resourceURL = resource.getResourceURL();

      Attachments

        1. MimedImage.java
          5 kB
          Kenneth William
        2. MimedImage.jwc
          0.3 kB
          Kenneth William
        3. TranparentTextImage.jwc
          0.3 kB
          Kenneth William
        4. TransparentTextImage.java
          0.6 kB
          Kenneth William

        Activity

          People

            andyhot Andreas Andreou
            nhhockeyplayer Kenneth William
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: