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:
RKrom 2010-08-18 13:28:57 +00:00
parent 84ac73c5de
commit 067668cde6

View file

@ -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)) {