[hyena] Hyena.Jobs: Ensure Job's Resources not null (bgo#647059)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Hyena.Jobs: Ensure Job's Resources not null (bgo#647059)
- Date: Thu, 7 Apr 2011 17:36:33 +0000 (UTC)
commit 04772e97847c1e23465f07e8285329d6b1923a12
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Apr 7 12:34:41 2011 -0500
Hyena.Jobs: Ensure Job's Resources not null (bgo#647059)
Hyena/Hyena.Jobs/Job.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Hyena/Hyena.Jobs/Job.cs b/Hyena/Hyena.Jobs/Job.cs
index 7c73a65..ddf55f5 100644
--- a/Hyena/Hyena.Jobs/Job.cs
+++ b/Hyena/Hyena.Jobs/Job.cs
@@ -220,7 +220,7 @@ namespace Hyena.Jobs
public void SetResources (params Resource [] resources)
{
- Resources = resources;
+ Resources = resources ?? new Resource [0];
}
#endregion
@@ -235,7 +235,7 @@ namespace Hyena.Jobs
{
Title = title;
PriorityHints = hints;
- Resources = resources;
+ SetResources (resources);
}
#endregion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]