Skip to content

Commit 55761bd

Browse files
Handle Android resources without attributes (#412)
1 parent 4826c29 commit 55761bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modulecheck-parsing/android/src/main/kotlin/modulecheck/parsing/android/AndroidResourceParser.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class AndroidResourceParser {
4444

4545
AndroidResource.fromValuePair(
4646
type = node.name().toString(),
47-
name = node.attributes().values.first()?.toString() ?: ""
47+
name = node.attributes().values.firstOrNull()?.toString() ?: ""
4848
)?.also { values.add(it) }
4949
}
5050
}

0 commit comments

Comments
 (0)