tasque r78 - in trunk: . src



Author: sharm
Date: Mon Jun 23 13:24:54 2008
New Revision: 78
URL: http://svn.gnome.org/viewvc/tasque?rev=78&view=rev

Log:
* src/TaskWindow.cs: Check that newly created task is non-null before
  trying to use it.  Return if null (should show message to user,
  though).  Fixes crash found when adding an EDS task in the "All"
  category.

Modified:
   trunk/ChangeLog
   trunk/src/TaskWindow.cs

Modified: trunk/src/TaskWindow.cs
==============================================================================
--- trunk/src/TaskWindow.cs	(original)
+++ trunk/src/TaskWindow.cs	Mon Jun 23 13:24:54 2008
@@ -895,6 +895,9 @@
 				taskName = enteredTaskText;
 			
 			ITask task = CreateTask (taskName, category);
+			if (task == null)
+				return; // TODO: Explain error to user!
+			
 			if (taskDueDate != DateTime.MinValue)
 				task.DueDate = taskDueDate;
 			



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]