Skip to content

Comments

Line 419: Null Reference Exception on empty cells#32

Merged
lindalu-MSFT merged 1 commit intoOfficeDev:livefrom
basicbear:patch-1
Sep 10, 2019
Merged

Line 419: Null Reference Exception on empty cells#32
lindalu-MSFT merged 1 commit intoOfficeDev:livefrom
basicbear:patch-1

Conversation

@basicbear
Copy link
Contributor

I used the old code ("theCell != null") and got null reference exceptions when cells were empty.

I found that theCell.InnerText.Length>0 avoided the null reference exception. Using Object.ReferenceEquals(), or !(x== null) didn't change the outcome.

I used the old code ("theCell != null") and got null reference exceptions when cells were empty. 

I found that theCell.InnerText.Length>0 avoided the null reference exception. Using Object.ReferenceEquals(), or !(x== null) didn't change the outcome.
@o365devx
Copy link

Docs Build status updates of commit 20281fd:

✅ Validation status: passed

File Status Preview URL Details
docs/how-to-retrieve-the-values-of-cells-in-a-spreadsheet.md ✅Succeeded

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@lindalu-MSFT lindalu-MSFT merged commit 5365993 into OfficeDev:live Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants