diff --git a/lib/android/manifest.rb b/lib/android/manifest.rb
index <HASH>..<HASH> 100644
--- a/lib/android/manifest.rb
+++ b/lib/android/manifest.rb
@@ -38,6 +38,7 @@ module Android
         @intent_filters = []
         unless elem.elements['intent-filter'].nil?
           elem.elements['intent-filter'].each do |e|
+            next unless e.instance_of? REXML::Element
             @intent_filters << IntentFilter.parse(e)
           end
         end
diff --git a/spec/manifest_spec.rb b/spec/manifest_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/manifest_spec.rb
+++ b/spec/manifest_spec.rb
@@ -122,6 +122,23 @@ describe Android::Manifest do
       context "with no components" do
         it { should be_empty }
       end
+      context 'with text element in intent-filter element. (issue #3)' do 
+        before do
+          app = REXML::Element.new('application')
+          activity = REXML::Element.new('activity')
+          intent_filter = REXML::Element.new('intent-filter')
+          text = REXML::Text.new('sample')
+
+          intent_filter << text
+          activity << intent_filter
+          app << activity
+          dummy_xml.root << app
+        end
+        it "should have components" do
+          subject.should have(1).items
+        end
+        it { expect { subject }.to_not raise_error }
+      end
     end
   end
fixed #3. check object class before creating IntentFilter object.