Skip to content

Commit e7283ea

Browse files
committed
Merge pull request vogellacompany#3 from pockchueng/master
Bug Fix - null object exception if without this line
2 parents eb169db + 85fc678 commit e7283ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

de.vogella.android.sqlite.first/src/de/vogella/android/sqlite/first/TestDatabaseActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public void onCreate(Bundle savedInstanceState) {
1717
setContentView(R.layout.main);
1818

1919
datasource = new CommentsDataSource(this);
20+
datasource.open();
2021

2122
List<Comment> values = datasource.getAllComments();
2223

0 commit comments

Comments
 (0)