AnsweredAssumed Answered

Getting a null refrence of a node.

Question asked by prateekgoyal on Jul 8, 2010
Latest reply on Jul 8, 2010 by prateekgoyal
Hi All,

I have created a program using web ser api which is the web-client-config-custom.xml in Data Dictionary>Web Client Extension folder.
In this if the file i.e web-client-config-custom.xml already exist in the folder then it will be deleted first and then again uploaded the updated file.
But when i'm checking for the existence of the file using,
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");   
query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/app:dictionary/app:webclient_extension/" + FileName + "\"");
ResultSet rs =repositoryService.query(storeRef, query, false).getResultSet();
ResultSetRow[] rsRows = rs.getRows();

I am getting a null value even though that file is already present in that folder.
So i want to know that is their any other way of checking for the existence of a node in data dictionary.