Re: when using equals method with a null string...



Hello Tony,
That is strange. The difference between your code and my code is that I
declared both strings to be private, and neither are NEWed. I changed
my code according to your example, and I'm still getting an exception.
I guess there is a slight difference in our environment or libraries?
I'm using NetBeans with Java 1.5.
Thanks.

.



Relevant Pages

  • Re: when using equals method with a null string...
    ... That is strange. ... declared both strings to be private, ... If you're getting NPEs, then your Java is broken, and you should uninstall it, redownload it, and reinstall it. ...
    (comp.lang.java.programmer)
  • Re: Find The Text :-)
    ... personally I would suggest writing your own "wrap" code anyway because you will get much more control that way and much more flexibility, including the ability to do things that the DrawText API cannot do. ... If you don't fancy writing the "wrap" code yourself then a very simple alternative would be to use a borderless standard VB TextBox Control and set its size to the same as your required "wrap rectangle" and just dump your string into its Text property. ... You can then send it an EM_GETLINECOUNT to count the number of wrapped lines and EM_GETLINE messages to get those lines into a VB array of Strings. ... Private Declare Function SendMessage Lib "user32" _ ...
    (microsoft.public.vb.general.discussion)
  • Re: was: Current Uses for Fortran ??
    ... > Strange because no other programming languages do it. ... > numbers and strings. ... I don't like + for concatenate since I believe that concatenate ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: How to call HTML (with POST) page from Web form
    ... private mshtml.HTMLDocument ieDoc; ... //use the following for getting at HTML in the document. ... You can see I've wrapped the IE Navigate method just to check for null ... strings and other validations. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: OnPaint automatically call e.Graphics.Clear()?
    ... private Brush _brush = Brushes.Black; ... I expect the OnPaint method will do nothing after the first call. ... my form contains many individual text strings. ...
    (microsoft.public.dotnet.framework.windowsforms)