From f6e13e5f8f75a8b7628f32dca361c352c75e7181 Mon Sep 17 00:00:00 2001 From: Joe Seibel <1824701+joeseibel@users.noreply.github.com> Date: Tue, 24 Mar 2020 12:38:00 -0400 Subject: [PATCH] Catch all runtime exceptions instead of just NPEs. This prevents an error dialog from popping up while using the property view with an erroneous model. --- .../xtext/aadl2/ui/propertyview/CachePropertyLookupJob.xtend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.osate.xtext.aadl2.ui/src/org/osate/xtext/aadl2/ui/propertyview/CachePropertyLookupJob.xtend b/core/org.osate.xtext.aadl2.ui/src/org/osate/xtext/aadl2/ui/propertyview/CachePropertyLookupJob.xtend index 1e8b6038967..ffc8d9adaf6 100644 --- a/core/org.osate.xtext.aadl2.ui/src/org/osate/xtext/aadl2/ui/propertyview/CachePropertyLookupJob.xtend +++ b/core/org.osate.xtext.aadl2.ui/src/org/osate/xtext/aadl2/ui/propertyview/CachePropertyLookupJob.xtend @@ -106,7 +106,7 @@ package class CachePropertyLookupJob extends Job { ].entrySet.map[key.URI -> value]).unmodifiableView } ] - } catch (NullPointerException e) { + } catch (RuntimeException e) { } if (monitor.canceled) { Status.CANCEL_STATUS