Skip to content

Commit dfb22a8

Browse files
Update ColladaMeshShape.java
1 parent 6584066 commit dfb22a8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/gov/nasa/worldwind/ogc/collada/impl/ColladaMeshShape.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,9 @@ protected String getTexCoordSemantic(Geometry geometry)
11921192
*/
11931193
protected String getTextureSource(ColladaAbstractGeometry geometry)
11941194
{
1195+
if (this.bindMaterial == null)
1196+
return null;
1197+
11951198
ColladaTechniqueCommon techniqueCommon = this.bindMaterial.getTechniqueCommon();
11961199
if (techniqueCommon == null)
11971200
return null;
@@ -1297,7 +1300,10 @@ protected String getImageRef(ColladaEffect effect, ColladaTexture texture)
12971300
* available.
12981301
*/
12991302
protected ColladaEffect getEffect(ColladaAbstractGeometry geometry)
1300-
{
1303+
{
1304+
if (this.bindMaterial == null)
1305+
return null;
1306+
13011307
ColladaTechniqueCommon techniqueCommon = this.bindMaterial.getTechniqueCommon();
13021308
if (techniqueCommon == null)
13031309
return null;

0 commit comments

Comments
 (0)