Hello, I’m getting a pretty niche bug where I get a null reference exception when trying to indent twice with a bulleted list.
It works fine with a single indent and double indent works without bullet points.
Hello, I’m getting a pretty niche bug where I get a null reference exception when trying to indent twice with a bulleted list.
It works fine with a single indent and double indent works without bullet points.
It seems you are encountering a null reference exception when trying to apply a double indent to a bulleted list in your implementation. This issue may arise due to the way the list formatting is being handled in your code.
To troubleshoot this, consider the following steps:
Check List Initialization: Ensure that your list and its items are properly initialized before attempting to apply the indent. If the list or any of its items are null, this could lead to a null reference exception.
Verify Indentation Logic: When applying a double indent, make sure that the logic you are using to increase the indent level is correctly implemented. You might want to check if the current list level allows for a double indent.
Use Try-Catch Blocks: Implement try-catch blocks around the code that applies the double indent. This will help you catch the exception and understand where it is occurring.
Review Documentation: Refer to the Aspose documentation on managing bullet and numbered lists to ensure that you are using the correct methods and properties. For instance, methods like ListIndent()
and ListOutdent()
are crucial for managing list levels effectively.
Test with Simplified Code: Create a minimal example that only focuses on the list indentation. This can help isolate the issue and determine if it is related to your specific implementation or a broader issue with the library.
If you continue to experience issues, consider posting your code snippet in the Aspose forum for more targeted assistance from the community.
For further guidance, you can refer to the Aspose documentation on managing bullet and numbered lists, which provides detailed examples and explanations on how to work with list formatting effectively.
Sources:
[1]: Manage Bullet and Numbered Lists - Aspose Documentation
This issue is occurring with html bulleted lists only.
Can you please share your sample code snippet along with sample input file in .zip format? We will test the scenario in our environment and address it accordingly.