Community
Participate
Working Groups
Build ID: I20090528-2000 Steps To Reproduce: Hi. I have a a problem with GeneratedMakefileBuilder. invokeInternalBuilder(the one that takes IResource[] as the first argument) failing out when the calls are made as invokeInternalBuilder(../*initconsole=*/true); invokeInternalBuilder(../*initconsole=*/false); In the second call, "consoleOutStream" is null, so consoleOutStream.write (buf.toString(),getBytes()); fails. I tried executing the same code by selecting "Build Selected File(s)" from the project context menu with two files and noticed the second call was made with /*initconsole=*/false as well, but that consoleOutStream is not null (so the code works). I still haven't figured out what is causing this now. (I don't think I'm doing anything wrong.. but I'm not 100% confident). But is there any reason that this function shouldn't catch nullpointer exception? More information:
Please ignore what I said but this: > But is there any reason that this function shouldn't catch nullpointer > exception?
In addition, though the catch block in this function (catch (Exception e) { if (consoleOutStream!=null) { StringBuffer buf = new StringBuffer(); etc. builds a String buffer, the buffer doesn't seem to be printed out in the Console View as far as I can tell and this results in the view displaying just **** Internal Builder is used for build I don't know if you always see this time. I see it when buildResource is null.
Sorry,I meant "this problem" by "this time"