Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Java NullpointerException when getting the representation

$
0
0

Hi,

 

I get an error (java.lang.NullPointerException) when executing the following lines at :

 

     Representation rep = RepresentationHelper.Service.getDefaultRepresentation(CurrEPM)

 

This is the code :

 

Snap3.png

 

When I request info from the EPMDocument (CurrEPM) like this :

 

TracePath = TracePath + "\n" + "+2.2 " + "Number: " + CurrEPM.getNumber() + " Name: " + CurrEPM.getName() + " Status: " + CurrEPM.getLifeCycleState.toString() + " Version: " + CurrEPM.getVersionIdentifier().getValue() + " Iteration: " + CurrEPM.getIterationIdentifier().getValue();

 

I get :

 

+2.2 Number: M000056923.DRW Name: FOLDER PLATE Status: DESIGN Version: B Iteration: 1


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>