Menu

Any support for URL that ends with .aspx?

Terry
2013-05-13
2013-05-14
  • Terry

    Terry - 2013-05-13

    Hi,
    I'm using CSSBox 4.1 and frequently getting the following exception:

    Error: null
    java.lang.NullPointerException
    at cz.vutbr.web.csskit.antlr.CSSInputStream.stringStream(CSSInputStream.java:66)
    at cz.vutbr.web.csskit.antlr.CSSParserFactory$SourceType$2.getInput(CSSParserFactory.java:107)
    at cz.vutbr.web.csskit.antlr.CSSParserFactory.createParser(CSSParserFactory.java:339)
    at cz.vutbr.web.csskit.antlr.CSSParserFactory.append(CSSParserFactory.java:290)
    at cz.vutbr.web.csskit.antlr.CSSParserFactory.append(CSSParserFactory.java:323)
    at cz.vutbr.web.css.CSSFactory$CSSAssignTraversal.processNode(CSSFactory.java:485)
    at cz.vutbr.web.css.CSSFactory$CSSAssignTraversal.processNode(CSSFactory.java:1)
    at cz.vutbr.web.domassign.Traversal.listTraversal(Traversal.java:43)
    at cz.vutbr.web.css.CSSFactory.getUsedStyles(CSSFactory.java:381)
    at org.fit.cssbox.css.DOMAnalyzer.getStyleSheets(DOMAnalyzer.java:304)
    at org.fit.cssbox.css.DOMAnalyzer.getStyleSheets(DOMAnalyzer.java:316)
    at org.fit.cssbox.demo.TextBoxes.main(TextBoxes.java:84)

    I observed that URLs that ended with .aspx tend to give me the error above. For example, when I try the TextBoxes.java example with the URL "http://www.drexelmed.edu/home/AboutTheCollege.aspx", it gives me the error.
    I wonder if this is a bug of the library or the library does not support the .aspx case yet.
    Thanks in advance.
    Terry

     

    Last edit: Terry 2013-05-13
  • Radek Burget

    Radek Burget - 2013-05-14

    This was caused by a style parsing bug, it should not be related to aspx pages. Fixed in trunk.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.