From b0cb09dc117ea178ebe43ab0aa976d0b865f73d1 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 6 Jan 2012 13:03:52 -0800 Subject: [PATCH] Fixed an off by one error that was causing a null pointer exception in filter list activity --- astrid/.classpath | 2 +- .../plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/astrid/.classpath b/astrid/.classpath index 4bfa66fd5..40651759a 100644 --- a/astrid/.classpath +++ b/astrid/.classpath @@ -6,6 +6,7 @@ + @@ -26,7 +27,6 @@ - diff --git a/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java b/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java index d232548b2..e8962ef81 100644 --- a/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java @@ -157,8 +157,8 @@ public class TagFilterExposer extends BroadcastReceiver implements AstridFilterE untagged.listingIcon = ((BitmapDrawable)r.getDrawable(R.drawable.gl_lists)).getBitmap(); filters[0] = untagged; - for(int i = 1; i < tags.length; i++) - filters[i] = filterFromTag(context, tags[i - 1], TaskCriteria.activeAndVisible()); + for(int i = 0; i < tags.length; i++) + filters[i+1] = filterFromTag(context, tags[i], TaskCriteria.activeAndVisible()); FilterCategory filter = new FilterCategory(context.getString(name), filters); return filter; }