Skip to content

Loader3D throws a null reference error when attempting to access an obj file with no path separators. #22

@ghost

Description

When using the Loader3D class to read in an .obj file with a corresponding .mtl file, I received a reference error on line 485 of src/away3d/loaders/Loader3D.as. Upon investigation, I found that the code assumes that the url variable contains a separator (a '/' or ''). If one is not found, the pathArray is not initialized and the call the pop() attempts to access a null variable.

As a work around, I was able to supply "./" at the beginning of the URL to properly load my 3D object. I'm not sure if core-fp10 is still being maintained but I still have a use for it so I will submit a patch for you to optionally include if you feel it's worth it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions