Revision 10988 branches/v10/libraries/libjni-gdal/src/es/gva/cit/jgdal/GdalColorTable.java

View differences:

GdalColorTable.java
23 23
	 * @throws GdalException
24 24
	 */
25 25
	public int getColorEntryCount() throws GdalException{
26
		if(cPtr <= 0)
27
			throw new GdalException("Error en getColorEntryCount(). La creaci?n de la tabla no tuvo exito");
28
			 	
26
		 	
29 27
		return getColorEntryCountNat(cPtr);
30 28
	}
31 29
	
......
37 35
	 * @throws GdalException
38 36
	 */
39 37
	public GdalColorEntry getColorEntryAsRGB(int pos) throws GdalException{
40
		if(cPtr <= 0)
41
			throw new GdalException("Error en getColorEntryAsRGB(). La creaci?n de la tabla no tuvo exito");
38
		
42 39
		GdalColorEntry entry = new GdalColorEntry();
43 40
		short[] values =  getColorEntryAsRGBNat(cPtr, pos);
44 41
		entry.c1 = values[0];

Also available in: Unified diff