-
Notifications
You must be signed in to change notification settings - Fork 325
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
Null Reference Exception inserting documents when isActive is set before insertion #17
Comments
The source of the problem and the fix is located in
This fix lets the rest of the code work as before but won't crash on your test case :-) So, the better solution is to move the layoutContent variable inside the if statement (because its only used there) and use a boolean to determine whether the layoutContent is selected or not:
|
Original Issue: #1481
DocumentOpenSample.zip
The text was updated successfully, but these errors were encountered: