The problem comes from your null salary!
Null is not equal to or less than anything. So no salary sum can be >= all other sums. The null guarantees this.
To avoid this, exclude nulls or map the sum to 0 if it's null:
create table t (
ID int,name varchar2(20),dept_name varchar2(20),salary int
);
insert into t values (10101,'Srinivasan','Comp. Sci.',65000);
insert into t values (12121,'Wu','Finance',90000);
insert into t values (15151,'Mozart','Music',40000);
insert into t values (22222,'Einstein','Physics',95000);
insert into t values (32343,'El Said','History',60000);
insert into t values (33456,'Gold','Physics',87000);
insert into t values (45565,'Katz','Comp. Sci.',75000);
insert into t values (58583,'Califieri','History',62000);
insert into t values (76543,'Singh','Finance',80000);
insert into t values (76766,'Crick','Biology',72000);
insert into t values (83821,'Brandt','Comp. Sci.',92000);
insert into t values (98345,'Kim','Elec. Eng.',80000);
insert into t values (1111,'abc','ADEPT',null);
select dept_name,sum(salary) from t
group by dept_name having sum(salary) >= all
(select sum(salary) from t
where salary is not null
group by dept_name);
DEPT_NAME SUM(SALARY)
Comp. Sci. 232,000
select dept_name,sum(salary) from t
group by dept_name having sum(salary) >= all
(select nvl(sum(salary), 0) from t
group by dept_name);
DEPT_NAME SUM(SALARY)
Comp. Sci. 232,000