mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fixed NullReference due to wrong logic
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@818 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
84ac73c5de
commit
067668cde6
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ namespace Greenshot.Core {
|
|||
}
|
||||
|
||||
private static object ConvertValueToFieldType(Type fieldType, string value) {
|
||||
if (value == null && value.Length == 0) {
|
||||
if (value == null || value.Length == 0) {
|
||||
return null;
|
||||
}
|
||||
if (fieldType == typeof(string)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue