1

NullPointer when passing String Array between two activities in Android

view story
linux-howto

http://stackoverflow.com – I am trying to send an array of Strings which basically include a path of a file on the device. First the user Selects Picture 1 and then Select Picture 2. Once the user completes that the array is then loaded and passed to the next activity. When tried receiving the variable returns NullPointer. MainActivity: case SELECT_PICTURE1: if (resultCode == RESULT_OK) { // code here that gets the image path // String leftImagePath contains the path of selected Image // Used toast to display the image path and it is not null (HowTos)