Skip to content

Language Archiving Technology

Sections
Personal tools
You are here: Home » Tools » Elan » ELAN Forum » Linux: NullPointerException when creating new eaf file (no waveform shown)

Linux: NullPointerException when creating new eaf file (no waveform shown)

Up one level

Linux: NullPointerException when creating new eaf file (no waveform shown)

Posted by martins at 2009-07-13 12:22  

When using ELAN 3.7.2 under Linux there is an issue when creating a new eaf file and subsequently adding a wav file.

Java reports a NullPointerException at
src/java/mpi/eudico/client/annotator/player/JMFMediaPlayer.java
in method getAspectRatio()

As a consequence, no waveform shows up.

Until the next release one can fix this by changing the following in the above mentioned method and file (source release of ELAN):
original:
[...]
public float getAspectRatio() {
if (player == null) {
return 0;
}
[...]

should be changed to:
[...]
public float getAspectRatio() {
if (player == null || getVisualComponent() == null) {
return 0;
}
[...]

Best regards,
Martin

Re: Linux: NullPointerException when creating new eaf file (no waveform shown)

Posted by hasloe at 2009-07-14 10:34  

Thanks a lot, this fix will be in the next release.

-Han

 

Powered by Plone

This site conforms to the following standards: