Not getting values from sales order in netsuite

i’m trying to get values from SalesOrder in netsuite.

when i called predefined methods of Salesorder class getting null pointer exception.

Anyone help me how to get values from it.



Calendar fromDate=Calendar.getInstance();
        fromDate.add(Calendar.DATE, -15);
        System.out.println("dddddddddddd :::: "+fromDate.getTime());
        SearchDateField searchDateField=new SearchDateField();
        searchDateField.setOperator(SearchDateFieldOperator.after);
        searchDateField.setSearchValue(fromDate);
        TransactionSearchBasic tsb=new TransactionSearchBasic();

        tsb.setDateCreated(searchDateField);


        SearchResult res = _port.search(tsb);
        RecordList rl=res.getRecordList();
        Record[] rr=rl.getRecord();
        System.out.println("sizeee :::::::::: "+rr.length);
        String salesord=null;
        for(Record rcd:rr){

            salesord=rcd.getClass().getName();
            if(salesord.equals("com.netsuite.webservices.transactions.sales_2013_2.SalesOrder")){
                Class<?> innerClass = Class.forName("com.netsuite.webservices.transactions.sales_2013_2.SalesOrder");
                Object obj=innerClass.newInstance();
                if(obj instanceof SalesOrder){
                    SalesOrder so=(SalesOrder)obj;
                        System.out.println("fffffffffffff :"+so.getSalesRep().getName());
                }
            }
            System.out.println("class name : : : "+salesord);
        }