mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-09-11 18:47:19 +03:00
Fix a null reference exception in the documentation (Thanks Mario M.).
This commit is contained in:
parent
a4cab091fa
commit
620612b050
@ -1073,7 +1073,7 @@ namespace XSDDiagram
|
|||||||
if (o is XMLSchema.documentation)
|
if (o is XMLSchema.documentation)
|
||||||
{
|
{
|
||||||
XMLSchema.documentation documentation = o as XMLSchema.documentation;
|
XMLSchema.documentation documentation = o as XMLSchema.documentation;
|
||||||
if (documentation.Any != null && documentation.Any.Length > 0)
|
if (documentation.Any != null && documentation.Any.Length > 0 && documentation.Any[0].Value != null)
|
||||||
{
|
{
|
||||||
string text = documentation.Any[0].Value;
|
string text = documentation.Any[0].Value;
|
||||||
text = text.Replace("\n", " ");
|
text = text.Replace("\n", " ");
|
||||||
|
@ -132,6 +132,7 @@ CHANGES:
|
|||||||
|
|
||||||
version 1.2alpha (2016-09-??)
|
version 1.2alpha (2016-09-??)
|
||||||
- Add infer XSD from XML menu.
|
- Add infer XSD from XML menu.
|
||||||
|
- Fix a null reference exception in the documentation (Thanks Mario M.).
|
||||||
|
|
||||||
version 1.1 (2016-07-08)
|
version 1.1 (2016-07-08)
|
||||||
- Fix SVG page size.
|
- Fix SVG page size.
|
||||||
|
BIN
XSDDiagram.exe
BIN
XSDDiagram.exe
Binary file not shown.
Binary file not shown.
@ -495,7 +495,7 @@ namespace XSDDiagram.Rendering
|
|||||||
if (o is XMLSchema.documentation)
|
if (o is XMLSchema.documentation)
|
||||||
{
|
{
|
||||||
XMLSchema.documentation documentation = o as XMLSchema.documentation;
|
XMLSchema.documentation documentation = o as XMLSchema.documentation;
|
||||||
if (documentation.Any != null && documentation.Any.Length > 0)
|
if (documentation.Any != null && documentation.Any.Length > 0 && documentation.Any[0].Value != null)
|
||||||
{
|
{
|
||||||
text = documentation.Any[0].Value;
|
text = documentation.Any[0].Value;
|
||||||
text = text.Replace("\n", " ");
|
text = text.Replace("\n", " ");
|
||||||
|
@ -168,7 +168,7 @@ namespace XSDDiagram.Rendering
|
|||||||
if (o is XMLSchema.documentation)
|
if (o is XMLSchema.documentation)
|
||||||
{
|
{
|
||||||
XMLSchema.documentation documentation = o as XMLSchema.documentation;
|
XMLSchema.documentation documentation = o as XMLSchema.documentation;
|
||||||
if (documentation.Any != null && documentation.Any.Length > 0)
|
if (documentation.Any != null && documentation.Any.Length > 0 && documentation.Any[0].Value != null)
|
||||||
{
|
{
|
||||||
string text = documentation.Any[0].Value;
|
string text = documentation.Any[0].Value;
|
||||||
text = text.Replace("\n", " ");
|
text = text.Replace("\n", " ");
|
||||||
|
Loading…
Reference in New Issue
Block a user