Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bca8e6d3 authored by Jason Sams's avatar Jason Sams
Browse files

Catch errors for unknown object types.

bug 19805334

Change-Id: I71e172b8123076896737d352403f8ddefca544b6
parent ae5be38e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -145,6 +145,9 @@ public class FileA3D extends BaseObj {
            case MESH:
                entry.mLoadedObj = new Mesh(objectID, rs);
                break;

            default:
                throw new RSRuntimeException("Unrecognized object type in file.");
            }

            entry.mLoadedObj.updateFromNative();