Changeset 1189 for MDService2/trunk


Ignore:
Timestamp:
04/03/11 20:44:08 (13 years ago)
Author:
gaba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/SRUProxyAction.java

    r1187 r1189  
    290290                mdrepoproxyaction.setFormat("xml");
    291291               
    292                 if ((this.startRecord < 0 ) ||(getServletRequest().getParameter("startRecord").equals("0"))) {
     292               
     293                if ((this.startRecord < 0 ) ||((getServletRequest().getParameter("startRecord") != null)&&(getServletRequest().getParameter("startRecord").equals("0")))) {
    293294                        this.Diagnostics().Add(new Diagnostic(Diagnostic.UNSUPPORTED_PARAMETERVALUE, "startRecord must by grater than 0."));//,Diagnostic.NONFATALNONSURORGATE));
    294295                        //mdrepoproxyaction.setStartItem("1");
     
    297298                }
    298299       
    299                 if ((this.maximumRecords < 0 ) ||(getServletRequest().getParameter("maximumRecords").equals("0"))){
     300                if ((this.maximumRecords < 0 ) ||((getServletRequest().getParameter("maximumRecords") != null) && (getServletRequest().getParameter("maximumRecords").equals("0")))){
    300301                           this.Diagnostics().Add(new Diagnostic(Diagnostic.UNSUPPORTED_PARAMETERVALUE,
    301302                                           "maximumRecords must by grater than 0."));
Note: See TracChangeset for help on using the changeset viewer.