Skip to content

Commit 038ae9a

Browse files
fix null pointer exception (#6093)
Signed-off-by: parneet-guraya <[email protected]>
1 parent ea20a64 commit 038ae9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/src/main/java/fr/free/nrw/commons/wikidata/mwapi/MwQueryPage.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class MwQueryPage : BaseModel() {
3434

3535
fun title(): String = title!!
3636

37-
fun categoryInfo(): CategoryInfo = categoryinfo!!
37+
fun categoryInfo(): CategoryInfo? = categoryinfo
3838

3939
fun index(): Int = index
4040

0 commit comments

Comments
 (0)