commit | 9131814fc62ae03be4d78270b8ebb4a68836d3ca | [log] [tgz] |
---|---|---|
author | Alex Ruiz <alruiz@google.com> | Sat Apr 14 23:46:23 2012 -0700 |
committer | Alex Ruiz <alruiz@google.com> | Sat Apr 14 23:46:23 2012 -0700 |
tree | b95bb224c678507ab4b10c564f461a59a25c685c | |
parent | 3487f9ca24ba9db2317716aab35b9fa7563fa2d5 [diff] |
Fixed NPE.
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/builder/protoc/ProtobufBuildParticipant.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/builder/protoc/ProtobufBuildParticipant.java index 312b6eb..d8e074f 100644 --- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/builder/protoc/ProtobufBuildParticipant.java +++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/builder/protoc/ProtobufBuildParticipant.java
@@ -75,7 +75,7 @@ return null; } URI uri = resource.getURI(); - if (!uri.isPlatformResource() && !uri.fileExtension().equals("proto")) { + if (!uri.isPlatformResource() && !"proto".equals(uri.fileExtension())) { return null; } return uri.toPlatformString(true);