NullReferenceException exception for olivegreen
naoak opened this issue · comments
Naoaki commented
NPOI Version
2.6.2
File Type
XLSX
Reproduce Steps
using NPOI.SS.UserModel;
var color = IndexedColors.ValueOf("OliveGreen");
Issue Description
The above code should return IndexColors of OliveGreen. But, it actually throws NullReferenceException.
I found a typo here.
https://github.com/nissl-lab/npoi/blob/master/main/SS/UserModel/IndexedColors.cs#L194
"olivergreen" should be "olivegreen".
Tony Qu commented
Bug confirmed. Can you create a PR for this?