From 89bb9a47de00d979f68469b705fb2960142cb0cb Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Thu, 14 Dec 2006 22:14:07 +0000 Subject: r20176: Info method returns null object if the user is not found. rafal (This used to be commit a20b05183d274a3a780ae197dc7014428739cc7a) --- testprogs/ejs/ejsnet.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/testprogs/ejs/ejsnet.js b/testprogs/ejs/ejsnet.js index a40406d74e..b39d888c39 100755 --- a/testprogs/ejs/ejsnet.js +++ b/testprogs/ejs/ejsnet.js @@ -30,11 +30,17 @@ if (status.is_ok != true) { return -1; } + var info = usr_ctx.Info(options.ARGV[1]); -println("UserInfo.AccountName = " + info.AccountName); -println("UserInfo.Description = " + info.Description); -println("UserInfo.FullName = " + info.FullName); -println("UserInfo.AcctExpiry = " + info.AcctExpiry); +if (info != null) { + println("UserInfo.AccountName = " + info.AccountName); + println("UserInfo.Description = " + info.Description); + println("UserInfo.FullName = " + info.FullName); + println("UserInfo.AcctExpiry = " + info.AcctExpiry); +} else { + println("Null UserInfo returned - account unknown"); +} + var status = usr_ctx.Delete(options.ARGV[1]); if (status.is_ok != true) { -- cgit