Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/Bindings.java

Issue 135803003: Translate index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/Bindings.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/Bindings.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/Bindings.java
index 3bbbaa5929de3182c6f22c2310b8e48fce3c1a73..6c98c78a239f150e5c4c1d73f4604c58cf07148b 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/Bindings.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/Bindings.java
@@ -623,6 +623,9 @@ public class Bindings {
}
public static IBinding getDeclaration(IBinding binding) {
+ if (binding == null) {
+ return null;
+ }
switch (binding.getKind()) {
case IBinding.TYPE:
return ((ITypeBinding) binding).getTypeDeclaration();

Powered by Google App Engine
This is Rietveld 408576698