Commit f5cb839e authored by Robert Smith's avatar Robert Smith
Browse files

Corrected ResourceComponent tutorial



Corrected the checks for valid files in the sample code for the
ResourceComponent tutorial.
Signed-off-by: Robert Smith's avatarRobert Smith <SmithRW@ornl.gov>
parent 6994bfab
......@@ -66,7 +66,7 @@ visItFile = project.getFile("wave.visit");
//If the file was found, create the CSV resource and add it to the component
try{
if(csvFile != null){
if(csvFile.exists()){
csvResource = new
VizResource(csvFile.getLocation()
.toFile());
......@@ -75,7 +75,7 @@ try{
//If the file was found, create the VisIt resource and add it to
//the component
if(visItFile != null){
if(visItFile.exists()){
visItResource = new
VizResource(visItFile.getLocation()
.toFile());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment