Skip to content

Commit

Permalink
Fixes NPE on JavaFilePage
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Jun 19, 2015
1 parent 9479d79 commit a6bffe6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,14 +555,14 @@ class JavaFilePage extends TypePage {

if (identifier) {
String name = identifier.getSymbol().text
String descriptor = currentContext.getDescriptor(name);
String descriptor = currentContext?.getDescriptor(name);

if (descriptor) {
// Is a local variable or a method parameter
if (descriptor.charAt(0) == 'L') {
return descriptor.substring(1, descriptor.length() - 1)
}
} else {
} else if (currentInternalTypeName) {
String internalTypeName = searchInternalTypeNameForThisFieldName(currentInternalTypeName, name)

if (internalTypeName) {
Expand Down

0 comments on commit a6bffe6

Please sign in to comment.