Skip to content

Commit e017603

Browse files
authored
Update PrefsProcessor.kt
1 parent e605a61 commit e017603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/main/java/com/catchpig/compiler/PrefsProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class PrefsProcessor : BaseProcessor() {
131131
if (element.asType().toString() == JAVA_STRING) {
132132
getFunSpecBuilder = getFunSpecBuilder
133133
.returns(STRING)
134-
.addStatement("return sharedPrefs.getString(%S,%S)",prefsKey,"")
134+
.addStatement("return sharedPrefs.getString(%S,%S)!!",prefsKey,"")
135135
}
136136
}
137137
else -> {

0 commit comments

Comments
 (0)