From d74b68462046fff5e6db42c14ec2c470b2a33ef3 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sun, 14 Sep 2014 16:30:12 -0400 Subject: [PATCH] Force VerseContent to take in a non-null verse --- .../service/format/osisparser/VerseContent.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/org/bspeice/minimalbible/service/format/osisparser/VerseContent.kt b/app/src/main/kotlin/org/bspeice/minimalbible/service/format/osisparser/VerseContent.kt index 00e9936..c1f5467 100644 --- a/app/src/main/kotlin/org/bspeice/minimalbible/service/format/osisparser/VerseContent.kt +++ b/app/src/main/kotlin/org/bspeice/minimalbible/service/format/osisparser/VerseContent.kt @@ -8,11 +8,11 @@ import org.crosswire.jsword.passage.Verse import java.util.ArrayList //TODO: JSON Streaming parsing? http://instagram-engineering.tumblr.com/post/97147584853/json-parsing -class VerseContent(v: Verse?) { - var id = v?.getOrdinal() ?: 0 - var bookName = v?.getName() ?: "" - var chapter = v?.getChapter() ?: 0 - var verseNum = v?.getVerse() ?: 0 +class VerseContent(v: Verse) { + var id = v.getOrdinal() + var bookName = v.getName() + var chapter = v.getChapter() + var verseNum = v.getVerse() var content = "" var chapterTitle = "" var paraTitle = ""