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

Exception: System.NullReferenceException in Editor.ChemDoodleWeb800 #13

Closed
MikeWilliams-UK opened this issue Aug 22, 2019 · 0 comments
Closed
Assignees
Labels
Bug Fixed This has been fixed

Comments

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Aug 22, 2019

Some users are seeing this Exception

Editor.ChemDoodleWeb800.WpfChemDoodle.SwitchToMulti_OnClick()

Exception	
System.NullReferenceException: Object reference not set to an instance of an object.
 at Chem4Word.Model.Converters.Json.JSONConverter.AddMolecule(Object data, Model newModel) in C:\Dev\vsts\chem4word\Version3\src\Chemistry\Chem4Word.Model\Converters\Json\JSONConverter.cs:line 171
 at Chem4Word.Model.Converters.Json.JSONConverter.Import(Object data) in C:\Dev\vsts\chem4word\Version3\src\Chemistry\Chem4Word.Model\Converters\Json\JSONConverter.cs:line 160
 at Chem4Word.Editor.ChemDoodleWeb800.WpfChemDoodle.SwitchToMulti_OnClick(Object sender, RoutedEventArgs e) in C:\Dev\vsts\chem4word\Version3\src\PlugIns\Editors\ChemDoodleWeb.800\WpfChemDoodle.xaml.cs:line 422

in JSONConverter.cs at line 171 change

foreach (AtomJSON a in data.a)
{
}

To

if (data.a != null)
{
  foreach (AtomJSON a in data.a)
  {
  }
}
@MikeWilliams-UK MikeWilliams-UK added this to the Release 16 (V3.0.28) milestone Aug 22, 2019
@MikeWilliams-UK MikeWilliams-UK self-assigned this Aug 22, 2019
@MikeWilliams-UK MikeWilliams-UK added the Fixed This has been fixed label Oct 1, 2019
MikeWilliams-UK added a commit that referenced this issue Oct 2, 2019
* Bug Fix; Series does not contain a matching element in OoXml rendering [#15]
* Bug Fix; Sequence contains no elements in CustomRibbon Edit [#9]
* Bug Fix; System.NullReferenceException in Editor.ChemDoodleWeb800 [#13]
* Bug Fix; HandleRightClick(); The requested member of the collection does not exist. [#10]

Related work items: #563
MikeWilliams-UK added a commit to Chem4Word/Version3-1 that referenced this issue Oct 8, 2019
- Remove space and simplify display of charges spin multiplicity for molecule
- Always select first molecule in label editor

Merge of bug fixes from V3
- Chem4Word/Version3#9
- Chem4Word/Version3#10
- Chem4Word/Version3#13
- Chem4Word/Version3#15
- Better detection of Word Version

Related work items: #627, #629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fixed This has been fixed
Development

No branches or pull requests

1 participant