Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface ContentService : Publication.Service {
* The implementation must be fast and non-blocking. Do the actual extraction inside the
* [Content] implementation.
*/
fun content(start: Locator?): Content?
fun content(start: Locator?): Content
}

/**
Expand Down Expand Up @@ -64,8 +64,8 @@ class DefaultContentService(
}
}

override fun content(start: Locator?): Content? {
val publication = publication() ?: return null
override fun content(start: Locator?): Content {
val publication = publication() ?: throw IllegalStateException("No Publication object")
return ContentImpl(publication, start)
}

Expand Down