Created
April 5, 2012 21:15
-
-
Save datherra/2314208 to your computer and use it in GitHub Desktop.
NullPointerExcepetion no Batch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// revision 6268 | |
public void exportPAImage(ChartParametersBean bean, String sistema_id, String sistema_value, String hostname, Vector<Item> listMInfra, String tipoMInfra, | |
String threshold, String dataIni, String dataFim, Projeto proj, Infra infra) { | |
// criar | |
JFreeChart chart = getOutputFactory().createPAChart(getDbManager().getListPADatasets(), sistema_value, hostname, listMInfra, tipoMInfra, threshold, | |
dataIni, dataFim, bean); | |
// exportar | |
String fileNameCP = "Panorama-" + proj.getNome() + "-" + infra.getServidor(); | |
getOutputFactory().exportChart(chart, fileNameCP); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// revision HEAD | |
public void exportPAImage(ChartParametersBean bean, String sistema_id, String sistema_value, String hostname, Vector<Item> listMInfra, String tipoMInfra, | |
String threshold, String dataIni, String dataFim, Projeto proj, Infra infra) { | |
// criar | |
if (infra.getServidor().equals("SNESUN115")) { // <== infra.getServidor() retorna null | |
System.out.println(""); | |
} | |
JFreeChart chart = getOutputFactory().createPAChart(getDbManager().getListPADatasets(), sistema_value, hostname, listMInfra, tipoMInfra, threshold, | |
dataIni, dataFim, bean); | |
// exportar | |
String fileNameCP = "Panorama-" + proj.getNome() + "-" + hostname; | |
getOutputFactory().exportChart(chart, fileNameCP); | |
} |
Author
datherra
commented
Apr 5, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment