opencaesar / oml-rosetta

An Eclipse IDE that supports OML natively
Apache License 2.0
11 stars 1 forks source link

Fix OML model compare in Git staging view #15

Open paulgaspardo opened 3 years ago

paulgaspardo commented 3 years ago

In the Git staging view, opening a comparison for a changed file would fail with a NullPointerException from trying to read the contents of an IStorage for the "origin" side of the comparison, which doesn't exist.

To handle this, instead of using a given IStorage directly, make sure a file for it actually exists by re-loading it from the IStorageProviderAccessor by name.