Skip to content
Snippets Groups Projects
Commit 32ea0173 authored by srosse's avatar srosse
Browse files

OO-990: wrong instanceof

parent 777dfb18
No related branches found
No related tags found
No related merge requests found
......@@ -250,7 +250,7 @@ public class AuthorListController extends FormBasicController implements Activat
public void event(UserRequest ureq, Component source, Event event) {
if(importLink == source) {
doImport(ureq);
} else if(source instanceof Link && ((Link)source).getUserObject() instanceof String) {
} else if(source instanceof Link && ((Link)source).getUserObject() instanceof RepositoryHandler) {
RepositoryHandler handler = (RepositoryHandler)((Link)source).getUserObject();
if(handler != null) {
doCreate(ureq, handler);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment