[tasque/new_cache] Added a check for a null category to RtmBackend
- From: Brian G. Merrell <bgmerrell src gnome org>
- To: svn-commits-list gnome org
- Subject: [tasque/new_cache] Added a check for a null category to RtmBackend
- Date: Sun, 17 May 2009 20:27:55 -0400 (EDT)
commit f440195d55be37ef91ce08bf2ac642cfeec5e344
Author: bgmerrell <bean cobweb provo novell com>
Date: Sun May 17 18:23:38 2009 -0600
Added a check for a null category to RtmBackend
I added a check for a null category in the CreateTask method of the
RtmBackend. This will stop the crashing that was occuring, but
categories still need to be fixed.
---
src/Backends/Rtm/RtmBackend.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Backends/Rtm/RtmBackend.cs b/src/Backends/Rtm/RtmBackend.cs
index bf49357..e072fbe 100644
--- a/src/Backends/Rtm/RtmBackend.cs
+++ b/src/Backends/Rtm/RtmBackend.cs
@@ -94,7 +94,7 @@ namespace Tasque.Backends.RtmBackend
string categoryID;
RtmTask rtmTask = null;
- if(category is Tasque.AllCategory)
+ if(category == null || category is Tasque.AllCategory)
categoryID = null;
else
categoryID = (category as RtmCategory).ID;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]