Permalink
Browse files

Minor bugfix. License is changed to ASL 2.0.

  • Loading branch information...
1 parent 5524575 commit 6977c3d07b803093e7686d565f3575d5b8b35787 @analytically committed Nov 24, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 README.md
  2. +2 −1 src/main/java/com/zestia/capsule/restapi/CTasks.java
View
@@ -94,4 +94,4 @@ Click [here](https://github.com/coenrecruitment/capsulecrm-java/tree/master/src/
License
-------
-Licensed under the [WTFPL](http://en.wikipedia.org/wiki/WTFPL).
+Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
@@ -2,6 +2,7 @@
import com.google.common.base.Objects;
+import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -14,7 +15,7 @@
@Override
public Iterator<CTask> iterator() {
- return tasks.iterator();
+ return tasks != null ? tasks.iterator() : new ArrayList<CTask>().iterator();
}
@Override

0 comments on commit 6977c3d

Please sign in to comment.