Had similar issue while using code from SMSReceiver tutorial. The exception occurred only when running from eclipse. Used putExtra() to pass the message to the SMSActivity class. Use try catch to handle the exception when bundle.getExtra("message") fails. This I think is because no SMS data is passed while running the app from eclipse. when the app actually reacts to an SMS, data is passed and the message is displayed in the TextView. Hope this helps you.
smile it is the key that fits the lock of everybody's heart