Skip to content

Commit

Permalink
Fix illegalstateexception for empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
masato1230 committed Dec 28, 2022
1 parent 454ac6f commit 31da5dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docpuree/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ afterEvaluate {

groupId = 'com.github.tokubai'
artifactId = 'docpuree'
version = '1.0.2'
version = '1.0.3'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ internal fun RawLogJsonScreen(
)
}
) {
Box(modifier = Modifier
.fillMaxSize()
.pullRefresh(refreshState)
Box(
modifier = Modifier
.fillMaxSize()
.pullRefresh(refreshState)
) {
if (!refreshing) {
RawLogJsonContent(modifier = Modifier.padding(it), viewModel = viewModel)
Expand All @@ -76,7 +77,10 @@ private fun RawLogJsonContent(
contentPadding = PaddingValues(12.dp),
verticalArrangement = Arrangement.spacedBy(12.dp),
) {
items(items = state.successfullyLoggedJsonHistory, key = { it }) { classToJson ->
items(
items = state.successfullyLoggedJsonHistory.filter { it.isNotBlank() },
key = { it },
) { classToJson ->
RowLogJsonItem(json = classToJson)
}
}
Expand Down

0 comments on commit 31da5dd

Please sign in to comment.