Skip to content

Commit

Permalink
#92 deal with null params
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Aug 31, 2014
1 parent 5a68776 commit 6c9678d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="nl.x-services.plugins.calendar"
version="4.2.5">
version="4.2.6">

<name>Calendar</name>

Expand Down
4 changes: 2 additions & 2 deletions src/android/nl/xservices/plugins/Calendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ private boolean findEvents(JSONArray args) {
try {
JSONObject jsonFilter = args.getJSONObject(0);
JSONArray jsonEvents = getCalendarAccessor().findEvents(
jsonFilter.optString("title"),
jsonFilter.optString("location"),
jsonFilter.isNull("title") ? null : jsonFilter.optString("title"),
jsonFilter.isNull("location") ? null : jsonFilter.optString("location"),
jsonFilter.optLong("startTime"),
jsonFilter.optLong("endTime"));

Expand Down

0 comments on commit 6c9678d

Please sign in to comment.