Project

General

Profile

« Previous | Next » 

Revision 2845

Added by sgarg over 18 years ago

code to handle null pointer exception

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
2015 2015
        if(rootElement.indexOf(":") > 0){
2016 2016
        	prefix = rootElement.substring(rootElement.indexOf(":") + 1,
2017 2017
        			rootElement.length());
2018
        } 
2019
        return prefix.trim();
2018
        }
2019

  
2020
	if(prefix != null){
2021
        	return prefix.trim();
2022
	}
2023

  
2024
	return null;
2020 2025
    }
2021 2026

  
2022 2027
    /**

Also available in: Unified diff