Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<li> elements that are not embedded within <ol> or <ul> cause a NullPointerException... #21

Open
bplawler opened this issue Sep 14, 2015 · 4 comments

Comments

@bplawler
Copy link

I know that it's not valid XHTML, but I have a situation where the source of my input may produce list items that don't exist in a list container. I know that it's impossible to know if this situation what the user actually wanted, but I'm hoping that there is a good workaround for this that will avoid the whole thing blowing up. Here is an example document will demonstrate the problem:

  <li>here is the problem</li>

It would appear that XHTMLImporterImpl.java is assuming that listHelper.peekListStack() will always return something that isn't null. Would it be wise to make that impossible, and to push a list onto the stack if peekListStack() would otherwise return a null?

@nilesh4java
Copy link

Did you get any solution on this? Even I am facing the same issue?

@devasakshay
Copy link

I am facing same issue any workaround to this?

@plutext
Copy link
Owner

plutext commented Mar 25, 2019

Should be straightforward to fix; just a matter of finding time.

@ChristophKronberger
Copy link

ChristophKronberger commented Jun 28, 2022

@plutext
I did a quick fix for this Problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants