Skip to content
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
8 changes: 4 additions & 4 deletions EPPlus/ExcelWorkbook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* EPPlus provides server-side generation of Excel 2007/2010 spreadsheets.
* See http://www.codeplex.com/EPPlus for details.
*
* Copyright (C) 2011 Jan K�llman
* Copyright (C) 2011 Jan Källman
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand All @@ -26,8 +26,8 @@
*
* Author Change Date
* ******************************************************************************
* Jan K�llman Initial Release 2011-01-01
* Jan K�llman License changed GPL-->LGPL 2011-12-27
* Jan Källman Initial Release 2011-01-01
* Jan Källman License changed GPL-->LGPL 2011-12-27
*******************************************************************************/
using System;
using System.Xml;
Expand Down Expand Up @@ -890,7 +890,7 @@ private void SetNameElement(ExcelNamedRange name, XmlElement elem)
{
if (name.IsName)
{
if (string.IsNullOrEmpty(name.NameFormula))
if (string.IsNullOrEmpty(name.NameFormula)&& name.NameValue != null)
{
if ((name.NameValue.GetType().IsPrimitive || name.NameValue is double || name.NameValue is decimal))
{
Expand Down