Skip to content

Commit 400d973

Browse files
committed
Add a fallback to fix type nullability warning
Not actually sure why this didn't cause build problems before. It's not a real problem either way, but nice to clean it up regardless.
1 parent 1847826 commit 400d973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/tech/httptoolkit/javaagent/TransformationLogger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TransformationLogger(private val debugMode: Boolean) : AgentBuilder.Listen
1010
private val transformingTypes: ArrayList<String> = ArrayList()
1111

1212
fun beforeTransformation(type: TypeDescription) {
13-
transformingTypes.add(type.canonicalName)
13+
transformingTypes.add(type.canonicalName ?: "Unknown")
1414
}
1515

1616
override fun onError(

0 commit comments

Comments
 (0)