Skip to content

Commit

Permalink
Merge pull request DevBoost#34 from Adomat/reference_extension_nullpo…
Browse files Browse the repository at this point in the history
…inter_catch

Caught Nullpointer in Reference Extension
  • Loading branch information
mirkoseifert authored Nov 12, 2018
2 parents e335bf2 + 4f19518 commit 80ada09
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ else if (me instanceof ReflectiveClassReference) {
else if (me instanceof ElementReference) {
ReferenceableElement target =
(ReferenceableElement) ((ElementReference) me).getTarget();

if (target == null) {
return null;
}
if (target.eIsProxy()) {
type = null;
}
Expand Down

0 comments on commit 80ada09

Please sign in to comment.