에러메세지를 다시 한번 잘 확인해 보세요.
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at com.example.interiorshare.ListActivity$2.onItemClick(ListActivity.java:79)
에러의 원인은 IndexOutOfBoundsException, 에러가 나는 곳이 ListActivity.java의 79번째 라인이네요.
JavaDoc을 보시면 해당 에러에 대한 설명이 나옵니다.
https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html
public class IndexOutOfBoundsException
extends RuntimeException
Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.
Applications can subclass this class to indicate similar exceptions.
이미 알고 있는 에러가 아니라면, JavaDoc 등을 찾으셔서 해당 에러가 어떤 의미인지 어떤 에러를 상속받았는지 확인하시기를 추천합니다. 그래야 에러처리를 할 수 있겠죠?
IndexOutOfBoundsException는 사용하신 position이 Array나 List같은 Collection type의 범위를 벗어나서 생긴 에러입니다.
즉, List 의 갯수가 3라면 position은 0 - 2 사이여야 하겠죠?
님과 같은 경우는 리스트를 선택했기 때문에 IndexOutOfBoundsException가 발생하면 안되는 걸로 보이고 이건 로직 상의 버그로 여겨지기 때문에, 버그의 원인을 제거하는게 맞습니다. 따라서, Intent에 선택된 아이템을 넘길 때, 브레이크포인트를 지정하셔서 왜 에러가 나는지 디버깅을 하셔야 합니다. 이 부분은 올리신 코드로만으로는 해당 에러가 나지 않아야 하는데, 에러가 발생하는 걸로 봐서는 다른 코드와 관련이 되어 있지 않나 추측됩니다.