// maybe update the progress label
if (_progress != percent) {
_progress = percent;
- if (!_ifc.hideProgressText) {
+ if (_ifc != null && !_ifc.hideProgressText) {
String msg = MessageFormat.format(get("m.complete"), percent);
_newplab = createLabel(msg, new Color(_ifc.progressText, true));
}
}
remaining /= values;
- if (!_ifc.hideProgressText) {
+ if (_ifc != null && !_ifc.hideProgressText) {
// now compute our display value
int minutes = (int)(remaining / 60), seconds = (int)(remaining % 60);
String remstr = minutes + ":" + ((seconds < 10) ? "0" : "") + seconds;
*/
protected void updateStatusLabel ()
{
+ if (_ifc == null) {
+ return;
+ }
String status = _status;
if (!_displayError) {
for (int ii = 0; ii < _statusDots; ii++) {
status += " .";
}
}
-
+
StringBuilder labelText = new StringBuilder();
if (_ifc.displayVersion) {
- labelText.append("version: "+Build.version());
+ labelText.append("launcher version: "+Build.version());
labelText.append("\n");
}
if (_ifc.displayAppbase) {