File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
tmc-plugin/src/fi/helsinki/cs/tmc/spyware/eventsources Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ void startListening() {
56
56
}
57
57
58
58
/**
59
- * Receives and logs sub window change events. Such as opening and closing a
60
- * new file and changing between open files.
59
+ * Receives and logs sub window change events. Such as opening and closing a new file and
60
+ * changing between open files.
61
61
*/
62
62
@ Override
63
63
public void propertyChange (PropertyChangeEvent evt ) {
@@ -172,11 +172,13 @@ private String toStringWithObjects(Object object) {
172
172
} else if (object instanceof Accessible ) {
173
173
try {
174
174
Accessible acc = (Accessible ) object ;
175
- AccessibleContext context = acc .getAccessibleContext ();
176
- if (context != null ) {
177
- String str = context .getAccessibleName ();
178
- if (str != null ) {
179
- return str ;
175
+ if (acc != null ) {
176
+ AccessibleContext context = acc .getAccessibleContext ();
177
+ if (context != null ) {
178
+ String str = context .getAccessibleName ();
179
+ if (str != null ) {
180
+ return str ;
181
+ }
180
182
}
181
183
}
182
184
} catch (Exception e ) {
@@ -195,8 +197,7 @@ private String underscorify(String string) {
195
197
}
196
198
197
199
/**
198
- * Returns {@link FileObject} representing the last active file for each
199
- * event.
200
+ * Returns {@link FileObject} representing the last active file for each event.
200
201
*/
201
202
private FileObject getChangedFile () {
202
203
JTextComponent jtc = EditorRegistry .lastFocusedComponent ();
You can’t perform that action at this time.
0 commit comments