StackOverflow Questions for Tag: kotlin-null-safety

Theprogrammingnoob
Theprogrammingnoob

Reputation: 127

Kotlin safe calls (?.) vs non-null assertions (!!)

Score: 1

Views: 3901

Answers: 2

Read More
MatHazak
MatHazak

Reputation: 37

What is the difference between readLine() and readlnOrNull() in Kotlin?

Score: 2

Views: 2602

Answers: 2

Read More
vector001
vector001

Reputation: 31

How to do null safe calls (?. operator) with Arrays?

Score: 0

Views: 83

Answers: 1

Read More
ItIsJustMe
ItIsJustMe

Reputation: 113

?. operator on a nullable array

Score: 4

Views: 91

Answers: 2

Read More
Kirill Rakhman
Kirill Rakhman

Reputation: 43851

Idiomatic way of handling nullable or empty List in Kotlin

Score: 54

Views: 81799

Answers: 10

Read More
Chloe L
Chloe L

Reputation: 21

Does safe call .? make sure early return null and stop entire following expression?

Score: 2

Views: 90

Answers: 3

Read More
rexar5
rexar5

Reputation: 540

Kotlin Contracts not working for null-check in extension function

Score: 11

Views: 1220

Answers: 3

Read More
Martin
Martin

Reputation: 139

JPA and Kotlin Null Safety

Score: 0

Views: 533

Answers: 1

Read More
RedMurloc
RedMurloc

Reputation: 137

Is there a way to check if kotlin class property was defined as nullable at runtime?

Score: 0

Views: 86

Answers: 1

Read More
Vinay Mhatre
Vinay Mhatre

Reputation: 69

Printing a function with return type String in Kotlin

Score: 0

Views: 62

Answers: 1

Read More
Toni Joe
Toni Joe

Reputation: 8417

How do I run a block of code if a nullable type is null?

Score: 87

Views: 56818

Answers: 9

Read More
Ash Kecthum
Ash Kecthum

Reputation: 91

specific reason for Kotlins remedy for NPE?

Score: 0

Views: 55

Answers: 2

Read More
user924
user924

Reputation: 12293

Kotlin null-safety is ignored when using Retrofit Gson Converter for parsing Json data (serialization)

Score: 0

Views: 75

Answers: 0

Read More
pra9
pra9

Reputation: 49

Only safe call allowed error when EditText is used to send string to firebase in android studio

Score: 1

Views: 41

Answers: 2

Read More
Melimet
Melimet

Reputation: 23

Handling nullable return types in Kotlin data class initialization with known non-null values

Score: 0

Views: 145

Answers: 0

Read More
Stammenator
Stammenator

Reputation: 65

How can I safely handle null values when calling Java methods from Kotlin?

Score: 3

Views: 856

Answers: 1

Read More
pdeva
pdeva

Reputation: 45541

Best way to null check in Kotlin?

Score: 176

Views: 275445

Answers: 6

Read More
k314159
k314159

Reputation: 11246

Change nullability of list elements without copying list

Score: 0

Views: 42

Answers: 2

Read More
fkurth
fkurth

Reputation: 918

how to use spring annotations like @Autowired or @Value in kotlin for primitive types?

Score: 48

Views: 48150

Answers: 7

Read More
mrt
mrt

Reputation: 1

NullPointerException in my android Activity

Score: 0

Views: 415

Answers: 4

Read More
PreviousPage 1Next