Skip to content

kotlin.KotlinNullPointerException when importing step file #19

@jimmyd-be

Description

@jimmyd-be

I'm creating a POC for visualizing STP files in a Java application.
I try to import the step file using the Importer().readFile() method and this gives a

Exception in thread "main" kotlin.KotlinNullPointerException
	at uno.kotlin.UtilKt.getUrl(util.kt:22)
	at uno.kotlin.UtilKt.getUri(util.kt:21)
	at assimp.Importer.readFile(Importer.kt:308)

This by only set this line of code:
AiScene scene = new Importer().readFile(fileName, 0);
fileName variable is the full path to the stp file.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions