Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#2 NPE on empty ATTLIST

matra-java-0.7a
closed-fixed
derupe
None
5
2004-01-25
2004-01-16
derupe
No

If an empty ATTLIST is fed to matra, it gives a
NullPointerException -

<!ATTLIST elementName>

The above is a valid construct according to the XML
productions - though it doesn't make any sense to have
such a declaration!

Discussion

  • derupe

    derupe - 2004-01-24

    Logged In: YES
    user_id=213929

    steps the recreate the problem -

    Matra -s "&lt;!ATTLIST elementName&gt;"

     
  • derupe

    derupe - 2004-01-25
    • status: open --> closed-fixed
     
  • derupe

    derupe - 2004-01-25

    Logged In: YES
    user_id=213929

    Fixed.

    Modified parseAttList in AttList.java to read attributes only if
    DTDData::getRemaining is not null.

    This change will be available in 0.7.1a release and future
    releases.

     

Log in to post a comment.