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

Fixed NullReferenceException when calling Table.GetBorder and Cell.GetBorder #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed NullReferenceException when calling Table.GetBorder and Cell.Ge…
…tBorder
  • Loading branch information
ROM-Knowledgeware committed Jul 11, 2018
commit 551b45bb2348209e49caa490dee2c13c4131ae3a
6 changes: 6 additions & 0 deletions Xceed.Words.NET/Src/Table.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2070,6 +2070,7 @@ public Border GetBorder( TableBorderType borderType )
if( tblPr == null )
{
// uses default border style
return b;
}

/*
Expand All @@ -2080,6 +2081,7 @@ public Border GetBorder( TableBorderType borderType )
if( tblBorders == null )
{
// uses default border style
return b;
}

/*
Expand All @@ -2094,6 +2096,7 @@ public Border GetBorder( TableBorderType borderType )
if( tblBorderType == null )
{
// uses default border style
return b;
}

// The val attribute is used for the border style
Expand Down Expand Up @@ -3782,6 +3785,7 @@ public Border GetBorder( TableCellBorderType borderType )
if( tcPr == null )
{
// uses default border style
return b;
}

/*
Expand All @@ -3792,6 +3796,7 @@ public Border GetBorder( TableCellBorderType borderType )
if( tcBorders == null )
{
// uses default border style
return b;
}

/*
Expand All @@ -3817,6 +3822,7 @@ public Border GetBorder( TableCellBorderType borderType )
if( tcBorderType == null )
{
// uses default border style
return b;
}

// The val attribute is used for the border style
Expand Down