Ignore:
Timestamp:
2004-01-06T11:44:56+13:00 (20 years ago)
Author:
cs025
Message:

Small changes in main function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/xpointer/XPointer.java

    r6291 r6347  
    213213      }
    214214     
    215       XPointer pointer;
    216       if (args.length == 2) {
     215      XPointer pointer = null;
     216      if (args.length < 2) {
     217      }
     218      else if (args.length == 2) {
    217219    pointer = XPointer.processXPointer(document, args[1]);
    218220      }
     
    220222    pointer = XPointer.processXPointer(document, args[1]+"/range-to("+args[2]+")");
    221223      }
    222       System.out.println(pointer.toString());
     224      if (pointer != null) {
     225    System.out.println(pointer.toString());
     226      }
    223227    }
    224228    catch (FactoryConfigurationError e) {
Note: See TracChangeset for help on using the changeset viewer.