summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Parker2013-01-31 18:10:27 (EST)
committer Miles Parker2013-01-31 18:10:27 (EST)
commit04dd14d2c3e3c95bf99ee451a82b81600071ac36 (patch)
tree405e93769f3495649f9bfe6ce2e57003ade8dd5f
parent24d29243465ff0611b1aa888912dffbf9b113b86 (diff)
downloadorg.eclipse.mylyn.reviews-04dd14d2c3e3c95bf99ee451a82b81600071ac36.zip
org.eclipse.mylyn.reviews-04dd14d2c3e3c95bf99ee451a82b81600071ac36.tar.gz
org.eclipse.mylyn.reviews-04dd14d2c3e3c95bf99ee451a82b81600071ac36.tar.bz2
399691: NPE in PatchSetSectionrefs/changes/89/10089/1
Change-Id: Ida1b5fd878a1bdb8083e94f139ad4cc1c3de2e33 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=399691
-rw-r--r--org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java
index a358ac8..9a21460 100644
--- a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java
+++ b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java
@@ -173,7 +173,9 @@ public class PatchSetSection extends AbstractGerritSection {
job.cancel();
}
super.dispose();
- labelProvider.dispose();
+ if (labelProvider != null) {
+ labelProvider.dispose();
+ }
}
public void updateTextClient(Section section, final PatchSetDetail patchSetDetail, boolean cachingInProgress) {