Revision 7f95a3c9 src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java

b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java
189 189
                if(userLevelDataProviderForIDs.getList().isEmpty()) {
190 190
                    userLevelDataProviderForIDs.getList().add(dummy);
191 191
                    app.LOG("OtherSharedTreeViewModel::fetchSharingUsers()::onSuccess() NO sharing users, adding [dummy]=\"", dummy, "\"");
192

  
193
                    // #4140 Must also use the callback before returning!
194
                    if(callback != null) {
195
                        try {
196
                            callback.execute();
197
                        }
198
                        catch(Exception e) {
199
                            Pithos.LOG("Error callback-ing after NO sharing users found", e);
200
                        }
201
                    }
192 202
                    return; // Only the dummy node is present, nothing to fetch from the server
193 203
                }
194 204

  

Also available in: Unified diff