Source:
<code>public String getLabel(VDomainModelReference reference) { final String path = getEcorePath(); if (path == null) { try { final BundleContext bundleContext = Activator.getDefault().getBundleContext(); final ServiceReference<EMFFormsLabelProvider> serviceReference = bundleContext .getServiceReference(EMFFormsLabelProvider.class); final EMFFormsLabelProvider labelProvider = bundleContext.getService(serviceReference); final IObservableValue observableValue = labelProvider.getDisplayName(reference); final String result = (String) observableValue.getValue(); observableValue.dispose(); bundleContext.ungetService(serviceReference); return result; <START> } catch (final NoLabelFoundException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); } <END> } final String firstPath = path.split("/")[1]; final String editPath = firstPath + ".edit/plugin.properties"; final IResource member = ResourcesPlugin.getWorkspace().getRoot().findMember(editPath); if (member.exists()) { final File file = member.getLocation().toFile(); final Properties p = new Properties(); FileInputStream fis = null; try { fis = new FileInputStream(file); p.load(fis); } catch (final FileNotFoundException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); } catch (final IOException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); } finally { if (fis != null) { try { fis.close(); } catch (final IOException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); } } } final EStructuralFeature feature = getEStructuralFeature(reference); if (feature == null) { return null; } final EClass eClass = feature.getEContainingClass(); final String key = String.format(DISPLAY_NAME, eClass.getName(), feature.getName()); final String result = p.getProperty(key); if (result == null) { return feature.getName(); } return result; } final EStructuralFeature feature = getEStructuralFeature(reference); return feature.getName(); }</code><technical_language>is label run a NullPointerException in next line</technical_language>

Target:
public String getLabel(VDomainModelReference reference) { final String path = getEcorePath(); if (path == null) { try { final BundleContext bundleContext = Activator.getDefault().getBundleContext(); final ServiceReference<EMFFormsLabelProvider> serviceReference = bundleContext .getServiceReference(EMFFormsLabelProvider.class); final EMFFormsLabelProvider labelProvider = bundleContext.getService(serviceReference); final IObservableValue observableValue = labelProvider.getDisplayName(reference); final String result = (String) observableValue.getValue(); observableValue.dispose(); bundleContext.ungetService(serviceReference); return result; } catch (final NoLabelFoundException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); return ""; } } final String firstPath = path.split("/")[1]; final String editPath = firstPath + ".edit/plugin.properties"; final IResource member = ResourcesPlugin.getWorkspace().getRoot().findMember(editPath); if (member.exists()) { final File file = member.getLocation().toFile(); final Properties p = new Properties(); FileInputStream fis = null; try { fis = new FileInputStream(file); p.load(fis); } catch (final FileNotFoundException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); } catch (final IOException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); } finally { if (fis != null) { try { fis.close(); } catch (final IOException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); } } } final EStructuralFeature feature = getEStructuralFeature(reference); if (feature == null) { return null; } final EClass eClass = feature.getEContainingClass(); final String key = String.format(DISPLAY_NAME, eClass.getName(), feature.getName()); final String result = p.getProperty(key); if (result == null) { return feature.getName(); } return result; } final EStructuralFeature feature = getEStructuralFeature(reference); return feature.getName(); }