[sip-comm-dev] Re: svn commit: r6830 - trunk/src/net/java/sip/communicator/impl: neomedia neomedia/device protocol/sip protocol/sip/sdp


#1

If I'm not mistaken, the code bellow always (presuming there is no
other exception than NoClassDefFoundError) returns null.

···

+ java.awt.Dimension res = null;
+
+ try
+ {
+ res = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
+ res = null;
+ }
+ catch(NoClassDefFoundError e)
+ {
+ return null;
+ }
+
+ return res;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Ouch, it was to test if everything runs fine even when returns null. Sorry.

Regards

···

--
Seb

Lubomir Marinov a �crit :

If I'm not mistaken, the code bellow always (presuming there is no
other exception than NoClassDefFoundError) returns null.

+ java.awt.Dimension res = null;
+
+ try
+ {
+ res = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
+ res = null;
+ }
+ catch(NoClassDefFoundError e)
+ {
+ return null;
+ }
+
+ return res;
    
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net