Example usage for java.lang NullPointerException fillInStackTrace

List of usage examples for java.lang NullPointerException fillInStackTrace

Introduction

In this page you can find the example usage for java.lang NullPointerException fillInStackTrace.

Prototype

public synchronized Throwable fillInStackTrace() 

Source Link

Document

Fills in the execution stack trace.

Usage

From source file:org.sakaiproject.sharegame.tool.producers.Companies2.java

@Override
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {
    // TODO Auto-generated method stub
    List<Company> c = companyLogic.getCompany();
    Company q = c.get(1);//from   ww w. jav  a  2  s.c  o  m

    UIOutput.make(tofill, "companyCode", q.getCompanyCode());
    UIOutput.make(tofill, "companyName", q.getCompanyName());
    //UIInternalLink.make(tofill, "website", q.getWebsite, viewparams);
    UILink.make(tofill, "website", q.getWebsite(), q.getWebsite());
    try {
        UIOutput.make(tofill, "sectorName", q.getSector().toString());
    } catch (NullPointerException e) {
        log.error(e.fillInStackTrace());
    }

}